fmease / lushui

The reference compiler of the Lushui programming language
Apache License 2.0
5 stars 0 forks source link

Clean up argument parsing #23

Closed fmease closed 3 years ago

fmease commented 3 years ago

Over time, we amassed a fair amount of boilerplate even though we are already using a proc-macro driven argument parser, structopt. For clarification, this originates from the requirement of supporting shared and distinct options per subcommand. Maybe I don't use structopt's full potential yet or it simply cannot handle it and we are forced to go back to the procedural API of clap.

We also need to design the basic options our CLI should currently understand: Selecting between the engines TWI and BCI, perma-unstable flags, etc.

fmease commented 3 years ago

Closed in 86319398f78a642e151b91a9e5b8e7077c26ea25.