Light command line for Node.js.
$ npm install light-cmd
const cmd = require('light-cmd')
cmd
.version('0.0.1')
.option('-a, --age', 'show the age', () => console.log('Age: 100'))
cmd
.parse(process.argv)
See examples for how to using.
Type: string
The semver version.
Type: string
Type: string
Type: function
Type: string
Type: function
Type: Array
Usually using process.argv
MIT © ZYSzys