0.1.1 • Published 9 years ago

auto-cli v0.1.1

Weekly downloads
6
License
-
Repository
github
Last release
9 years ago

Usage

$ npm install auto-cli
$ cat cli.js 
var auto_cli = require('auto-cli');

auto_cli(['html', '--verbose'])
.then(function( input ){
    console.log( input );
});
$ node cli.js 404.html --verbose
{ html: '404.html', '--verbose': true }

Arguments are determined base on ".html" filename extension and option name "--verbose". Argument order does not matter.

$ node cli.js --verbose 404.html  
{ html: '404.html', '--verbose': true }