-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Labels
questionFurther information is requestedFurther information is requested
Description
I found the behavior of -a=5
surprising (I was assuming it would simply be the value "5").
test('when combine string short with value including equals then parsed with equals in value', (t) => {
const args = ['-a=5'];
const options = { alpha: { short: 'a', type: 'string' } };
const expected = { values: { __proto__: null, alpha: '=5' }, positionals: [] };
const result = parseArgs({ args, options });
t.deepEqual(result, expected);
t.end();
});
Can someone refresh me on how we landed on this behavior?
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested