Skip to content

Commit e4d24c2

Browse files
committed
fix ignore yarg flag
1 parent 1c9b955 commit e4d24c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/yargs.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ export function setup(): Argv {
174174
.option('ignore', {
175175
alias: 'ig',
176176
describe: 'ignore a file',
177-
nargs: 1,
177+
type: 'array',
178178
default: defaults.ignore,
179179
})
180180
.example(
@@ -185,7 +185,7 @@ export function setup(): Argv {
185185
.example('diff2html -i file -- my-file-diff.diff', 'reading the input from a file')
186186
.example('diff2html -f json -o stdout -- -M HEAD~1', 'print json format to stdout')
187187
.example('diff2html -F my-pretty-diff.html -- -M HEAD~1', 'print to file')
188-
.example('diff2html --ig package-lock.json --ig yarn.lock', 'ignore two particular files when generating the diff')
188+
.example('diff2html --ig package-lock.json yarn.lock', 'ignore two particular files when generating the diff')
189189
.help()
190190
.alias('help', 'h')
191191
.alias('help', '?')

0 commit comments

Comments
 (0)