Skip to content

Commit

Permalink
Fix repeated --use, --settings
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Nov 29, 2023
1 parent 4b4f5ce commit 14a6d12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/parse-argv.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ export function parseArgv(flags, options) {
/** @type {Record<string, unknown>} */
const settings = {}
index = -1
if (++index < setting.length) {
while (++index < setting.length) {
parseConfig(setting[index], settings)
}

Expand All @@ -212,7 +212,7 @@ export function parseArgv(flags, options) {
/** @type {PluggableMap} */
const plugins = {}
index = -1
if (++index < use.length) {
while (++index < use.length) {
/** @type {Record<string, unknown>} */
const options = {}
const [key, value] = splitOptions(use[index])
Expand Down

0 comments on commit 14a6d12

Please sign in to comment.