Files
Odin/src
Jeroen van Rijn ad0a413b40 Give build/run/check/test/doc a -file flag.
A package has canonically always been a directory, but odin allowing you to build a single-file package confused newcomers who didn't understand why they could then not access variables and procedures from another file in the same directory.

This change disallows building single-file packages by default, requiring the `-file` flag to acknowledge you understand the nuance.

`-help` for these commands also clarifies the difference.

```
W:\Odin>odin build -help
odin is a tool for managing Odin source code
Usage:
        odin build [arguments]

        build   Compile directory of .odin files as an executable.
                One must contain the program's entry point, all must be in the same package.
                Use `-file` to build a single file instead.
                Examples:
                        odin build .                    # Build package in current directory
                        odin build <dir>                # Build package in <dir>
                        odin build filename.odin -file  # Build single-file package, must contain entry point.

        Flags

        -file
                Tells `odin build` to treat the given file as a self-contained package.
                This means that `<dir>/a.odin` won't have access to `<dir>/b.odin`'s contents.
```

```
W:\Odin>odin run examples\demo\demo.odin
ERROR: `odin run` takes a package as its first argument.
Did you mean `odin run examples\demo\demo.odin -file`?
The `-file` flag tells it to treat a file as a self-contained package.
```
2022-04-05 20:26:18 +02:00
..
2021-09-11 17:06:29 +01:00
2022-03-24 11:55:03 +00:00
2022-03-24 11:55:03 +00:00
2022-02-25 08:49:25 +00:00
2022-03-24 11:55:03 +00:00
2022-03-24 11:55:03 +00:00
2022-01-17 14:43:42 +00:00
2022-04-02 14:38:42 +01:00
2022-02-22 23:03:04 +00:00
2021-08-29 15:54:56 +02:00
2022-03-24 11:55:03 +00:00
2022-03-24 11:55:03 +00:00
2022-03-24 11:55:03 +00:00
2021-11-16 16:08:20 +00:00
2022-01-23 15:40:46 +00:00
2019-10-26 14:29:04 +01:00
2021-11-05 17:24:19 +00:00
2021-11-05 17:32:17 +00:00
2022-02-28 15:08:50 +00:00
2021-11-15 17:26:01 +00:00
2022-02-25 08:49:25 +00:00
2022-04-02 14:38:42 +01:00