-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve command line parsing utils to accept strings #249
Comments
do you mean quoted strings? Or do you mean using something more verbose than the simple one-character switches that everything uses? |
More verbose than one character switches |
this is probably going to happen this weekend, in conjunction with setting up for #330. Probably what I'll do is just extend the current design to allow for more verbosity while leaving the original design intact; then as time goes by we can migrate to using more verbose switches. Probably designed in such a way that you can use either an existing one character switch or a more verbose version down the road... I'm thinking along the lines of what the other compilers do '--' followed by some name and then if there is a parameter separate with a space. |
Can I suggest to just drop the current command line parser and use (a possibly adjusted version of) getopt? The license is compatible now, it is "commonly used" and also provides the option to use an abbreviated form for the long option as long as it is still clear - and otherwise prompts the user "did you mean xyz?" I guess it may need the same amount of time to replace the current parser with a well-debugged version than to rewrite and debug the current one... |
I may look at doing that, let me mull on it a while :) |
I think the title speaks for itself, it currently cannot handle strings as command line options when it really, really should and needs to if you want to have more than 13 (nonconfusing) unique commands.
The text was updated successfully, but these errors were encountered: