Skip to content
Myr

Fail when using same command and alias (#491)

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

authored by Augusto Franzoia · committed by Tomoaki Abe · parent df86179 · 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:+14 added−0 removed
  • other:+2 added−0 removed

2 files+16 added−0 removed

added:test/test.command.failOnSameAlias.js+14 added
modified:index.js+2 added
878 unmodified lines
879 }880881 if (arguments.length === 0) return command._alias;882883 if (alias === command._name) throw new Error('Command alias can\'t be the same as its name');884885 command._alias = alias;886 return this;887};888
254 unmodified lines