Skip to content
Myr

Fix to emit the action even without command (#778)

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

* Fix to emit the action even without command * Fix to emit the action even without command

authored by Tomoaki Abe · committed by Roman Vanesyan · parent 2d49ddf · Browse files · 2 files+16 added−0 removed
This commit

State

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

Diff stats

2 files+16 added−0 removed

  • tests:+13 added−0 removed
  • other:+3 added−0 removed

2 files+16 added−0 removed

added:test/test.noCommand.action.js+13 added
modified:index.js+3 added
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) {664 this.emit('command:*');665 }666 }667668 return this;669};
565 unmodified lines