felixangell / kpd

an old compiler for Krug written in D - a prototype version
MIT License
44 stars 1 forks source link

argument parser #25

Closed felixangell closed 6 years ago

felixangell commented 6 years ago

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