test.options.args.optional.given.js
This file
Path
test/test.options.args.optional.given.js
13 lines · 289 bytes · JavaScript
Last changed by
added failing testTj Holowaychukbefore adoption38bd109
History of this fileTake it
added failing testTj Holowaychukbefore adoption38bd109
lines 1–13why, one step back1/**2 * Module dependencies.3 */45var program = require('../')6 , should = require('should');78program9 .version('0.0.1')10 .option('-c, --cheese [type]', 'optionally specify the type of cheese');1112program.parse(['node', 'test', '--cheese', 'feta']);13program.cheese.should.equal('feta');