Skip to content
Myr

Fix a bug in command emit

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

authored by abetomo · committed by Roman Vanesyan · parent 25b06ee · Browse files · 1 file+2 added−1 removed
This commit

State

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

Trailers

  • fixes: #843
  • fixes: #842

Diff stats

1 file+2 added−1 removed

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:index.js+2 added-1 removed
658 unmodified lines
659 // then they are extraneous and we need to error.660 if (unknown.length > 0) {661 this.unknownOption(unknown[0]);662 }663 if (this._args.filter(a => a.required).length === 0) {663 if (this.commands.length === 0 &&664 this._args.filter(function(a) { return a.required }).length === 0) {665 this.emit('command:*');666 }667 }668
568 unmodified lines