What's Yargs?
Yargs helps you build interactive command line tools by parsing arguments and generating an elegant user interface.
Yargs gives you:
- commands and (grouped) options (like module run -n --force),
- a dynamically generated help menu based on your arguments,
- bash-completion shortcuts for commands and options,
- and much more.
With these features, and many more, yargs allows you to focus on building your program without worrying about your args.
Install
Open your terminal, navigate to your project, and run using npm:
$ npm install --save yargs