Skip to content
Myr

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 file

Take it

added failing testTj Holowaychukbefore adoption38bd109

lines 1–13why, one step back
1/**
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']);13program.cheese.should.be.true;