Skip to content
Lloyd Brookes edited this page Jan 23, 2018 · 58 revisions

Documentation

Get started by looking at the API documentation. There are two things you need to learn - the commandLineArgs function (exported by this module) and the OptionDefinition class it accepts as input.

To try out command-line-args, following the instructions in Typical usage.

Parse options

More detail and examples regarding the options you can pass to commandLineArgs.

Option definition features

Examples of various option definition features.

Other usage examples

Miscellaneous other examples.