You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be great to be able to use the args package in contexts where the naming convetion for negated flags are different which requires overriding the default negated flag name (--no-).
This could e.g. be done by adding an optional negatedName parameter to the addFlag method.
The text was updated successfully, but these errors were encountered:
I was thinking it should just replace the entire negated name.
Something like
parser.addFlag('fast', negatedName: 'slow')
which results in the --slow flags being the opposite of the --fast which in some cases are better than the default --no-fast. This would also allow changing the prefix, by e.g.
I just took a look at the code and the way it is structured today seems like it would be much simpler to support a new prefix that overriding the full name.
Solving the second use case above by supporting a new negated prefix would be great too. Completely overriding negated flag names could come as an additional improvement later.
It would be great to be able to use the args package in contexts where the naming convetion for negated flags are different which requires overriding the default negated flag name (--no-).
This could e.g. be done by adding an optional negatedName parameter to the addFlag method.
The text was updated successfully, but these errors were encountered: