Skip to content

Commit

Permalink
Shorten example fragment and make obvious which code to supply (#1189)
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowspawn authored Feb 12, 2020
1 parent 733047f commit 46f886f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -557,9 +557,7 @@ program.on('option:verbose', function () {
program.on('command:*', function (operands) {
console.error(`error: unknown command '${operands[0]}'`);
const availableCommands = program.commands.map(cmd => cmd.name());
const suggestion = didYouMean(operands[0], availableCommands);
if (suggestion)
console.error(`Did you mean '${suggestion}'?`);
mySuggestBestMatch(operands[0], availableCommands);
process.exitCode = 1;
});
```
Expand Down

0 comments on commit 46f886f

Please sign in to comment.