We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d0fe63 commit 5a1864cCopy full SHA for 5a1864c
lib/help.js
@@ -71,7 +71,7 @@ class Help {
71
// Built-in help option.
72
const helpOption = cmd._getHelpOption();
73
if (helpOption && !helpOption.hidden) {
74
- // Automatically hide conflicting flags. (Bit magical and messy, but preserve for now!)
+ // Automatically hide conflicting flags. Bit dubious but a historical behaviour that is convenient for single-command programs.
75
const removeShort = helpOption.short && cmd._findOption(helpOption.short);
76
const removeLong = helpOption.long && cmd._findOption(helpOption.long);
77
if (!removeShort && !removeLong) {
0 commit comments