Api and Kubectl reference docs updates for 1.7 (#4193)
* Fix includes groups * Generated kubectl docs for 1.7 * Generated references docs for 1.7 api
This commit is contained in:
committed by
Andrew Chen
parent
4ff5587583
commit
57a769f506
+14
@@ -0,0 +1,14 @@
|
||||
var optimist = require('../');
|
||||
var test = require('tap').test;
|
||||
|
||||
test('parse with modifier functions' , function (t) {
|
||||
t.plan(1);
|
||||
|
||||
var argv = optimist().boolean('b').parse([ '-b', '123' ]);
|
||||
t.deepEqual(fix(argv), { b: true, _: ['123'] });
|
||||
});
|
||||
|
||||
function fix (obj) {
|
||||
delete obj.$0;
|
||||
return obj;
|
||||
}
|
||||
Reference in New Issue
Block a user