-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Description
It seems that if one of the parameter if a number containing a decimal it fails (only if there is a default value for this parameter) and returns the integer value.
const args = require('args');
args.option('abc', 'This is a test', 0.123);
console.log(process.argv);
const parsed = args.parse(process.argv);
console.log(parsed);node src/test.js --abc 0.01
// returns { a: 0, abc: 0 }Metadata
Metadata
Assignees
Labels
No labels