krug uses the built in D argument parsing thing which is kind of rubbish and gives some crazy error messages.
i want to implement this myself but i want to have a similar system to go, i.e. the krug compiler has multiple sub commands, i.e. ./krug <sub_command>
sub commands would be:
run - runs the program
compile - compiles the program into an executable
explain - explains the given error message
help - shows a help message with a list of sub-commands
additionally, these sub-commands will work with short flags, i.e. ./krug r is shorthand for ./krug run
krug uses the built in D argument parsing thing which is kind of rubbish and gives some crazy error messages. i want to implement this myself but i want to have a similar system to go, i.e. the krug compiler has multiple sub commands, i.e.
./krug <sub_command>
sub commands would be:
additionally, these sub-commands will work with short flags, i.e.
./krug r
is shorthand for./krug run