Skip to content

Commit

Permalink
chore: remove unnecessary option for a command
Browse files Browse the repository at this point in the history
`noHelp` doesn't work because we override `printHelpInformation` and we need to handle `description` (that can be undefined) manually
  • Loading branch information
grabbou authored Mar 11, 2019
1 parent 5564634 commit 4ee39cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli/src/cliEntry.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const addCommand = (command: CommandT, ctx: ContextT) => {
const options = command.options || [];

const cmd = commander
.command(command.name, undefined, {noHelp: !command.description})
.command(command.name)
.description(command.description)
.action(function handleAction(...args) {
const passedOptions = this.opts();
Expand Down

0 comments on commit 4ee39cd

Please sign in to comment.