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