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
It seems that when the two property are combined, normalize overrides the coerced value with the normalized version of the original value of the option.
Minimal nodejs snippet to reproduce the issue:
var yargs = require('yargs');
var path = require('path');
var argv = yargs.option('source-dir', {
normalize: true,
coerce: path.resolve
}).argv;
console.log("result", {
sourceDir: argv.sourceDir,
resolvedSourceDir: path.resolve(argv.sourceDir)
});