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
Enhance ClapFlag with option to specify short form of flag name.
Describe the request
Currently, short form ClapFlag instance is always represented by first letter of long version name. This causes a problem, when having multiple flags starting with same letter, e.g. noHeader and name. There should be an option to specify short name programmatically (when specifying command) in order to avoid name conficts.
👍🏻 I would advise keeping the dash out of the shortName: though.
At some point I was thinking of aliases instead of just short/long names, because many commands have synonymous flags, or variants with slight semantic differences like --foo / --no-foo
Enhance ClapFlag with option to specify short form of flag name.
Describe the request
Currently, short form ClapFlag instance is always represented by first letter of long version name. This causes a problem, when having multiple flags starting with same letter, e.g.
noHeader
andname
. There should be an option to specify short name programmatically (when specifying command) in order to avoid name conficts.Expected behavior
Expected development cost
Version information:
The text was updated successfully, but these errors were encountered: