Sha256: bbcc699b6392b0d7921600f64f6d37b80c17f8c76d539a7968c38a7a6a883e38

Contents?: true

Size: 441 Bytes

Versions: 342

Compression:

Stored size: 441 Bytes

Contents

var parse = require('../');
var test = require('tape');

test('dotted alias', function (t) {
    var argv = parse(['--a.b', '22'], {default: {'a.b': 11}, alias: {'a.b': 'aa.bb'}});
    t.equal(argv.a.b, 22);
    t.equal(argv.aa.bb, 22);
    t.end();
});

test('dotted default', function (t) {
    var argv = parse('', {default: {'a.b': 11}, alias: {'a.b': 'aa.bb'}});
    t.equal(argv.a.b, 11);
    t.equal(argv.aa.bb, 11);
    t.end();
});

Version data entries

342 entries across 273 versions & 33 rubygems

Version Path
disco_app-0.18.0 test/dummy/node_modules/mkdirp/node_modules/minimist/test/dotted.js
disco_app-0.18.0 test/dummy/node_modules/fsevents/node_modules/minimist/test/dotted.js
disco_app-0.18.2 test/dummy/node_modules/mkdirp/node_modules/minimist/test/dotted.js
disco_app-0.16.1 test/dummy/node_modules/mkdirp/node_modules/minimist/test/dotted.js
disco_app-0.15.2 test/dummy/node_modules/mkdirp/node_modules/minimist/test/dotted.js
disco_app-0.18.4 test/dummy/node_modules/mkdirp/node_modules/minimist/test/dotted.js
disco_app-0.18.1 test/dummy/node_modules/mkdirp/node_modules/minimist/test/dotted.js
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/mkdirp/node_modules/minimist/test/dotted.js
disco_app-0.14.0 test/dummy/node_modules/mkdirp/node_modules/minimist/test/dotted.js
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/mkdirp/node_modules/minimist/test/dotted.js
enju_library-0.3.8 spec/dummy/node_modules/fsevents/node_modules/minimist/test/dotted.js
enju_library-0.3.8 spec/dummy/node_modules/mkdirp/node_modules/minimist/test/dotted.js
ilog-0.4.1 node_modules/mkdirp/node_modules/minimist/test/dotted.js
ilog-0.4.1 node_modules/fsevents/node_modules/minimist/test/dotted.js
ilog-0.4.0 node_modules/mkdirp/node_modules/minimist/test/dotted.js
ilog-0.4.0 node_modules/fsevents/node_modules/minimist/test/dotted.js
ilog-0.3.3 node_modules/fsevents/node_modules/minimist/test/dotted.js
ilog-0.3.3 node_modules/mkdirp/node_modules/minimist/test/dotted.js
learn_create-0.0.22 lib/templates/javascript_lab_template/node_modules/mkdirp/node_modules/minimist/test/dotted.js
jester-data-8.0.0 node_modules/mkdirp/node_modules/minimist/test/dotted.js