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 seems that it is impossible to use -h, -H or --help as they are hardcoded to throw HelpError in the parse step.
Would you be open for a PR? I would like it if this were possible:
// default: no help flagsnewCommand().optional(c.string, ...whatever)// -?/--helpnewCommand().help("?","help").optional(c.string,"host",{flags: ["h","host"],description: "omg so nice to be able to use -h again",})// -h/--help// help flag wins all conflictsnewCommand().help("h","help").optional(c.string,"host",{flags: ["h","host"],description: "this will not be usable, help takes precedence",})
And also, I definitely think flags should be case-sensitive, so that e.g. -X is not silently transformed into -x – huge surprise when I noticed that. What do you think?
The text was updated successfully, but these errors were encountered:
It seems that it is impossible to use
-h
,-H
or--help
as they are hardcoded to throwHelpError
in the parse step.Would you be open for a PR? I would like it if this were possible:
And also, I definitely think flags should be case-sensitive, so that e.g.
-X
is not silently transformed into-x
– huge surprise when I noticed that. What do you think?The text was updated successfully, but these errors were encountered: