Hi,
me again, in my quest to idiot proof the cli ;)
so I have two params, one foo and one bar
const argv = require("minimist")(process.argv.slice(2), {
string: ["foo"],
boolean: ["bar"]
});
if I run it with
I get
- argv.foo = alice
- argv.bar=true
- argv._ = ["bob"]
as expected
however, if I run it with
I get
- argv.foo = alice
- argv.bar=true
- argv._ = []
so a --bar=string is silently converted into --bar = true
is there an option to catch these conversions ?
Hi,
me again, in my quest to idiot proof the cli ;)
so I have two params, one foo and one bar
if I run it with
I get
as expected
however, if I run it with
I get
so a --bar=string is silently converted into --bar = true
is there an option to catch these conversions ?