Skip to content

Commit a564410

Browse files
grabbouthymikee
authored andcommitted
chore: remove unnecessary noHelp option for a command (#215)
`noHelp` doesn't work because we override `printHelpInformation` and we need to handle `description` (that can be undefined) manually
1 parent 5564634 commit a564410

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cli/src/cliEntry.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ const addCommand = (command: CommandT, ctx: ContextT) => {
8484
const options = command.options || [];
8585

8686
const cmd = commander
87-
.command(command.name, undefined, {noHelp: !command.description})
87+
.command(command.name)
8888
.description(command.description)
8989
.action(function handleAction(...args) {
9090
const passedOptions = this.opts();

0 commit comments

Comments
 (0)