You can define options with short name, name, default value and description
simpleargs.define('p','port',3000,'Port number') .define('h','host','localhost', 'Host name/address')// if you call the program// node hello.js Hello world -p 4000 --host 'mydomain' var options = simpleargs(process.argv.slice(2));// then options is { _: ['Hello', 'world'], port: 4000, host: 'mydomain' }
Development
git clone git://github.com/ajlopez/SimpleArgs.gitcd SimpleArgsnpm installnpm test