We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
// example.js const argparseLib = require('argparse') const parser = new argparseLib.ArgumentParser({ formatter_class: argparseLib.ArgumentDefaultsHelpFormatter }) parser.add_argument('-e', '--an-example', { help: 'An example flag.', action: argparseLib.BooleanOptionalAction, default: true }) const args = parser.parse_args()
$ node example.js --help usage: example.js [-h] [-e | --an-example | --no-an-example] optional arguments: -h, --help show this help message and exit -e, --an-example, --no-an-example An example flag. (default: true) (default: true)
The issue is that (default: true) is repeated (e.g. (default: true) (default: true))
(default: true)
(default: true) (default: true)
The text was updated successfully, but these errors were encountered:
have helpers indicate if they added a default arg desc, and use that …
7b3b898
…to avoid duplciating it in ArgumentDefaultsHelpFormatter, fixes nodeca#177
3921105
470e8c1
1f9bd44
Successfully merging a pull request may close this issue.
The issue is that
(default: true)
is repeated (e.g.(default: true) (default: true)
)The text was updated successfully, but these errors were encountered: