Skip to content

Commit 5a1864c

Browse files
committed
Update comment
1 parent 1d0fe63 commit 5a1864c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/help.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class Help {
7171
// Built-in help option.
7272
const helpOption = cmd._getHelpOption();
7373
if (helpOption && !helpOption.hidden) {
74-
// Automatically hide conflicting flags. (Bit magical and messy, but preserve for now!)
74+
// Automatically hide conflicting flags. Bit dubious but a historical behaviour that is convenient for single-command programs.
7575
const removeShort = helpOption.short && cmd._findOption(helpOption.short);
7676
const removeLong = helpOption.long && cmd._findOption(helpOption.long);
7777
if (!removeShort && !removeLong) {

0 commit comments

Comments
 (0)