Нет описания

12345678910111213141516
  1. #!/usr/bin/env node
  2. var cli = require('cli');
  3. //The second (optional) argument of cli.parse() is a command list
  4. //Type `./command.js --help` for usage info
  5. //cli enables auto-completion of commands (similiar to npm), e.g. all of
  6. //the following are equivalent and result in "Command is: install":
  7. // $ ./command.js install
  8. // $ ./command.js inst
  9. // $ ./command.js i
  10. cli.parse(null, ['install', 'test', 'edit', 'remove', 'uninstall', 'ls']);
  11. console.log('Command is: ' + cli.command);