forked from tj/commander.js
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
resolves tj#766 suggest to users run --help command
Adding one more console.error statements to bellow methods: - Command.prototype.missingArgument - Command.prototype.optionMissingArgument - Command.prototype.unknownOption - Command.prototype.variadicArgNotLast This console.error messages propose to user run the same command with `--help` option to get more info about the command which try to run. This is something that most UNIX like commands do (like rm, cp, mv, etc)
- Loading branch information
1 parent
c92ca1d
commit b7b7287
Showing
4 changed files
with
8 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters