Skip to content

Commit 14a6d12

Browse files
committed
Fix repeated --use, --settings
Closes remarkjs/remark#1265.
1 parent 4b4f5ce commit 14a6d12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/parse-argv.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ export function parseArgv(flags, options) {
192192
/** @type {Record<string, unknown>} */
193193
const settings = {}
194194
index = -1
195-
if (++index < setting.length) {
195+
while (++index < setting.length) {
196196
parseConfig(setting[index], settings)
197197
}
198198

@@ -212,7 +212,7 @@ export function parseArgv(flags, options) {
212212
/** @type {PluggableMap} */
213213
const plugins = {}
214214
index = -1
215-
if (++index < use.length) {
215+
while (++index < use.length) {
216216
/** @type {Record<string, unknown>} */
217217
const options = {}
218218
const [key, value] = splitOptions(use[index])

0 commit comments

Comments
 (0)