byronwatt / CmdLineOptions

yet another command line parser for c++
MIT License
1 stars 0 forks source link

alias option is broken #17

Closed byronwatt closed 1 year ago

byronwatt commented 1 year ago

apparently the alias option is supposed to slurp up the remaining options and do command line substitution.

this is broken.

perhaps instead it should exactly slurp up the number of arguments used in the expansion ?

byronwatt commented 1 year ago

the alias option just replaces an token with a bunch of other tokens,... need to add a test for that.

the 'aliaslist' option slurps up the remaining tokens and does a search and replace on that.

e.g. aliaslist: zero one two

replaces %0 with zero, %1 with one %2 with two

both alias and aliaslist should be tested and documented,... or perhaps just removed,...

hmm,... probably better to just remove them since they are kinda stupid.