Skip to content

Commit a41006d

Browse files
committed
fix(cli): malfunctioning config parsing
1 parent 17b190e commit a41006d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/cli/config.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,11 @@ exports.loadConfig = filepath => {
7878
config = parsers.json(filepath);
7979
}
8080

81-
config = yargs(undefined, path.dirname(filepath))
81+
const {$0, ...options} = yargs(undefined, path.dirname(filepath))
8282
.parserConfiguration(require('./options').YARGS_PARSER_CONFIG)
83-
.config(config);
83+
.config(config).argv;
84+
85+
config = options;
8486
} catch (err) {
8587
throw createUnparsableFileError(
8688
`Unable to read/parse ${filepath}: ${err}`,

0 commit comments

Comments
 (0)