change ref docs url format from 1_5 to v1.5

This commit is contained in:
Phillip Wittrock
2017-01-13 09:56:34 -08:00
parent f3231a2130
commit 69582c2d8c
3768 changed files with 8 additions and 8 deletions
+16
View File
@@ -0,0 +1,16 @@
var optimist = require('../index');
var test = require('tap').test;
test('-n123', function (t) {
t.plan(1);
var parse = optimist.parse([ '-n123' ]);
t.equal(parse.n, 123);
});
test('-123', function (t) {
t.plan(3);
var parse = optimist.parse([ '-123', '456' ]);
t.equal(parse['1'], true);
t.equal(parse['2'], true);
t.equal(parse['3'], 456);
});