aboutsummaryrefslogtreecommitdiff
path: root/src/tokenizer.cpp
diff options
context:
space:
mode:
authorMarc Tiehuis <marctiehuis@gmail.com>2018-04-12 22:23:58 +1200
committerMarc Tiehuis <marctiehuis@gmail.com>2018-04-12 22:28:47 +1200
commit803f0a295b168de058ac915d9ac45add44a41f40 (patch)
tree75cb2dff513bdb34e56bfb6af5ea3ac9fd135bb9 /src/tokenizer.cpp
parent281c17f6ae3c294d0b7139fe640dd0cb30123ea1 (diff)
downloadzig-803f0a295b168de058ac915d9ac45add44a41f40.tar.gz
zig-803f0a295b168de058ac915d9ac45add44a41f40.zip
Revise self-hosted command line interface
Commands are now separated more precisely from one another. Arguments are parsed mostly using a custom argument parser instead of manually. This should be on parity feature-wise with the previous main.zig but adds a few extra code-paths as well that were not yet implemented. Subcommands are much more prominent and consistent. The first argument is always a sub-command and then all following arguments refer to that command. Different commands display there own usage messages and options based on what they can do instead of a one-for-all usage message that was only applicable for the build commands previously. The `cc` command is added and is intended for driving a c compiler. See #490. This is currently a wrapper over the system cc and assumes that it exists, but it should suffice as a starting point.
Diffstat (limited to 'src/tokenizer.cpp')
0 files changed, 0 insertions, 0 deletions