You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
letr;r=require("yargs")().command("echo [pos]").parse(`echo "a b" --opt "a b"`);console.log(r.opt);// 'a b'console.log(r.pos);// '"a b"'// behavior originates here, where it makes more senser=require("yargs-parser")(`echo "a b" --opt "a b"`);console.log(r);// { _: [ 'echo', '"a b"' ], opt: 'a b' }
Related to yargs/yargs-parser#180.
Specifically seems weird to me that whether an option is positional or not changes the quote stripping behavior.
Seems like there may be a bunch of history here so feel free to just close if this has already been talked to death: yargs/yargs-parser#300
The text was updated successfully, but these errors were encountered: