Skip to content

Commit

Permalink
Merge pull request #145 from lpinca/document/version-option
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitaly Puzrin committed May 27, 2020
2 parents f5757f6 + c3d4928 commit ed4b23b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ Creates a new ArgumentParser object.
- ```prog``` - The name of the program (default: `path.basename(process.argv[1])`)
- ```usage``` - The string describing the program usage (default: generated)
- ```conflictHandler``` - Usually unnecessary, defines strategy for resolving conflicting optionals.
- ```version``` - The version of the program.

**Not supported yet**

Expand Down
1 change: 1 addition & 0 deletions lib/argument_parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ var Namespace = require('./namespace');
* - `debug` Enable debug mode. Argument errors throw exception in
* debug mode and process.exit in normal. Used for development and
* testing (default: false)
* - `version` The version of the program
*
* See also [original guide][1]
*
Expand Down

0 comments on commit ed4b23b

Please sign in to comment.