Skip to content
Lloyd Brookes edited this page Mar 26, 2020 · 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 object it accepts as input.

To try out command-line-args, follow 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.