nodeca / argparse

CLI arguments parser for node.js. JS port of python's argparse module.
Other
491 stars 73 forks source link

Using in non-command line app? #163

Closed nabtron closed 3 years ago

nabtron commented 3 years ago

Can we use argparse in a non-cli app? Like passing the command as a string variable to it?

puzrin commented 3 years ago

Yes. https://github.com/nodeca/argparse/blob/master/argparse.js#L2747

See python's arparse docs for any questions.