Skip to content

Commit 5d53a9a

Browse files
committed
Handle falsy values in addHelpCommand() properly
1 parent d038570 commit 5d53a9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/command.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ class Command extends EventEmitter {
365365
*/
366366

367367
addHelpCommand(enableOrNameAndArgs, description) {
368-
if (enableOrNameAndArgs === false) {
368+
if (!enableOrNameAndArgs && enableOrNameAndArgs !== undefined) {
369369
this._addImplicitHelpCommand = false;
370370
} else {
371371
this._addImplicitHelpCommand = true;

0 commit comments

Comments
 (0)