| What it is | Small helper for building Node.js command-line apps | Parse command-line arguments and build CLIs in Node.js | Minimal command-line argument parser for Node.js | The complete solution for Node.js command-line interfaces |
| Features | - argument and flag parsing
- camelCase flags and --no- negation
- automatic --version and --help
- no dependencies
| - Commands with grouped options
- Help menu generated from your commands and options
- Bash and Zsh completion scripts
- TypeScript typings and browser support
| - parses short, long, grouped and --no- flags into an object
- string, boolean, alias and default options
- stop at the first non-option, or split off arguments after --
- callback for unknown options
- CommonJS and ES module imports
| - option types: boolean, value, negatable, variadic and required
- commands with arguments and action handlers
- stand-alone executable subcommands
- automated, customisable help
- version option
- life-cycle hooks
|