argparse
argparse copied to clipboard
CLI arguments parser for node.js. JS port of python's argparse module.
What would be a recommended way to achieve something similar to https://stackoverflow.com/questions/32258362/setup-command-line-completion-with-yargs?
Migrating from version 1.0 to version 2.0, we noticed that this library has switched to starting descriptions with a lower case letter. For example `-h` now says `show this help...
I would suggest updating the license to either an [Open Source License](https://opensource.org/licenses) or a [Free Software License](https://www.gnu.org/licenses/licenses.en.html). `MIT` license is an populare choice. `Python-2.0` is not recognized by most tools...
Just wanted to report that at first-glance very-little has changed from 3.9 to 3.13 (Python's current stable version). Some-one familiar with the source-code could probably implement the changes relatively rapidly,...
#113, #153, #155, #171 were closed because the intent was to preserve the same behavior as Python argparse, which has had a [long-standing bug](https://github.com/python/cpython/issues/85427) where exit_on_error=false would still exit. That...
fixes nodeca/argparse#177
It would be great if this package would include typescript type definitions.
``` // 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 =...
The append action has O(n^2) performance, due to copying the list for every item. https://github.com/nodeca/argparse/blob/a645a9a9d3d0a347f383d0b795859e67dfae6ad8/argparse.js#L1559-L1560