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
Coerce gets called multiple times for nested command positional, this could cause issues when the arg type is converted.
Example Script:
importyargsfrom'yargs'constargv=yargs('rule add foo bar baz').showHelpOnFail(false).fail(msg=>{console.error(`[ERR] ${msg}`)process.exit(1)}).command('rule','',yargs=>{returnyargs.command('add <name> <desc...>','',yargs=>{returnyargs.positional('desc',{type: 'string',coerce: arg=>{console.log(arg)returnarg.join(' ')}})})}).argv// the parsed data is stored in argv.console.log(argv)
Coerce gets called multiple times for nested command positional, this could cause issues when the arg type is converted.
Example Script:
Expected Output:
Actual Output:
The text was updated successfully, but these errors were encountered: