Skip to content
Myr

Shorten example fragment and make obvious which code to supply (#1189)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by John Gee · committed by GitHub · parent 733047f · Browse files · 1 file+1 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−3 removed

  • other:+1 added−3 removed

1 file+1 added−3 removed

modified:Readme.md+1 added-3 removed
555 unmodified lines
556557program.on('command:*', function (operands) {558 console.error(`error: unknown command '${operands[0]}'`);559 const availableCommands = program.commands.map(cmd => cmd.name());560 const suggestion = didYouMean(operands[0], availableCommands);561 if (suggestion)562 console.error(`Did you mean '${suggestion}'?`);560 mySuggestBestMatch(operands[0], availableCommands);561 process.exitCode = 1;562});563```564
159 unmodified lines