Tyrrrz / CliFx

Class-first framework for building command-line interfaces
MIT License
1.48k stars 60 forks source link

Customizable option format/grammar #4

Closed Tyrrrz closed 4 years ago

Tyrrrz commented 5 years ago

Currently, CliFx only accepts options in a form of --some-argument value. It would be nice if you could customize it to accept different characters in place of whitespace, e.g. --some-argument=value. The next step would also be to make the entire grammar completely customizable so the user could use different styles/standards, e.g. /some-argument:value.

Tyrrrz commented 5 years ago

It's currently possible by defining a custom ICommandInputParser and ICommandHelpTextRenderer, but probably not very convenient to do if you want to just enable a specific character as switch.

Tyrrrz commented 4 years ago

Decided not to implement this. I want to concentrate my efforts on making sure this library does one thing and does it well, in order to avoid unnecessary complexity.