optparse-js
optparse-js copied to clipboard
Option parser for Javascript
The original demo file only `push()` the name of flag into the `options.files` instead of the file name.
Hello, first good job, thanks. My arguments look like ``` --key="value" ``` rather than ``` -key value ``` So these changes worked for me: ``` while(this._halt == false && (token...
https://docs.npmjs.com/files/package.json#license http://npm1k.org/
Usage: ``` coffeescript switches = [ ['-h', '--help', 'Show Help'] ['-i', '--interval [INTERVAL]', 'Ping Interval', (key, val)-> console.log "Interval is" + val ] ['-s', '--packetsize NUMBER', 'Packetsize', (key, val)-> console.log...
Now the JavaScript in the readme is color-coded in accordance with JavaScript syntax. I also fixed some little grammar errors.
The following: ``` var parser = new OptionParser([['-e', '--example [STRING]']]); parser.parse(['--example', '--help']); ``` passes `"--help"` as arg to the `example` handler even though the `--help` switch will be handled later...