Closed tommy-mitchell closed 1 year ago
Adds a test case to make sure that cli.unnormalizedFlags works correctly with the new aliases option:
cli.unnormalizedFlags
aliases
test('aliases - unnormalized flags', t => { t.deepEqual(meow({ importMeta, argv: ['--foo=baz'], flags: { fooBar: { type: 'string', aliases: ['foo'], shortFlag: 'f', }, }, }).unnormalizedFlags, { fooBar: 'baz', foo: 'baz', f: 'baz', }); });
Adds a test case to make sure that
cli.unnormalizedFlags
works correctly with the newaliases
option: