We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17b190e commit a41006dCopy full SHA for a41006d
lib/cli/config.js
@@ -78,9 +78,11 @@ exports.loadConfig = filepath => {
78
config = parsers.json(filepath);
79
}
80
81
- config = yargs(undefined, path.dirname(filepath))
+ const {$0, ...options} = yargs(undefined, path.dirname(filepath))
82
.parserConfiguration(require('./options').YARGS_PARSER_CONFIG)
83
- .config(config);
+ .config(config).argv;
84
+
85
+ config = options;
86
} catch (err) {
87
throw createUnparsableFileError(
88
`Unable to read/parse ${filepath}: ${err}`,
0 commit comments