We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Even when parser configuration strip-aliased is true, then it does not work if an option has coerce, e.g. see:
strip-aliased
true
coerce
const args = require("yargs") .parserConfiguration({ "strip-aliased": true }) .option("log", { alias: ["l", "ll"], coerce: s => s }) .parse("-l 1"); delete args["$0"]; delete args["_"]; // args is { log: 1, l: 1, ll: 1 }
The text was updated successfully, but these errors were encountered:
@jly36963 Thanks, fixed in 17.4.1. 👍
Sorry, something went wrong.
jly36963
No branches or pull requests
Even when parser configuration
strip-aliased
istrue
, then it does not work if an option hascoerce
, e.g. see:The text was updated successfully, but these errors were encountered: