test.options.args.optional.js
This file
Path
test/test.options.args.optional.js
13 lines · 275 bytes · JavaScript
Last changed by
added failing testTj Holowaychukbefore adoption38bd109
History of this fileTake it
1234567891011121314/** * Module dependencies. */
var program = require('../') , should = require('should');
program .version('0.0.1') .option('-c, --cheese [type]', 'optionally specify the type of cheese');
program.parse(['node', 'test', '--cheese']);program.cheese.should.be.true;