-
Notifications
You must be signed in to change notification settings - Fork 4
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
change --long-opts
to use = when given a value?
#13
Comments
For example:
|
Agreed it's a better defeat to have =. What about short ops with values? I've been thinking about how to do settings like telling clom which param format to use. Don't want to clutter the kwargs as it might clash with a command's option. Might have to do 'with_settings(opt_val_sep=" ")' or the like. Maybe clom should have ext support that has preconfigured options for common commands. That could make it too complicated though.
|
Values for short opts varies a bit, but I think what's there now ( If it's needed I think .with_settings is the way to go, but I think we should wait till it proves needed. It might not be. |
Curl doesn't like the
So this certainly needs to be optional. It may be the best default though. Need to check out a few common commands and see which is more supported, |
sadness |
Do we add a new .configure method? |
I guess we go with |
I've noticed that clom has a problem that mock.Mock also has: if you Do you have any ideas on that front? I think we'd have to decide which one Actually I can make both branches relatively easily, we we can decide which is nicer (or neither) after looking at them. |
You could also forget the namespace. Ex:
If we said "with_*" is a namespace, we could error. However if you typo'd "with" you'd still end up with it doing the wrong thing. |
Some commands won't parse
--long-opt val
as a long option with a value.I'd like to change this to use an = sign.
Of course this could be made configurable, but that makes things more complex.
I don't think the opposite problem happens; I don't believe there's any command that prefers the no-equal-sign syntax.
The text was updated successfully, but these errors were encountered: