Skip to content

Commit

Permalink
Add document links to errors
Browse files Browse the repository at this point in the history
A link would also be helpful in resolving the error.

link is to:
https://github.com/tj/commander.js#avoiding-option-name-clashes
  • Loading branch information
abetomo committed Jul 23, 2020
1 parent c5a5e7b commit 8fb669f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.js
Expand Up @@ -468,7 +468,9 @@ class Command extends EventEmitter {
throw new Error(`option '${option.name()}' clashes with existing property '${option.attributeName()}' on Command
- call storeOptionsAsProperties(false) to store option values safely,
- or call storeOptionsAsProperties(true) to suppress this check,
- or change option name`);
- or change option name
Read more on https://git.io/JJc0W`);
}
};

Expand Down

0 comments on commit 8fb669f

Please sign in to comment.