test.options.args.optional.given.js
This file
Path
test/test.options.args.optional.given.js
13 lines · 289 bytes · JavaScript
Last changed by
Not known.
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', 'feta']);program.cheese.should.equal('feta');