@@ -62,6 +62,7 @@ const parseFmtCLIArgs = (args: string[]): ParsedFmtCLIArgs => {
6262 'list-different' : { type : 'boolean' } ,
6363 listDifferent : { type : 'boolean' } ,
6464 'ignore-path' : { type : 'string' , multiple : true } ,
65+ ignorePath : { type : 'string' , multiple : true } ,
6566 'no-error-on-unmatched-pattern' : { type : 'boolean' } ,
6667 noErrorOnUnmatchedPattern : { type : 'boolean' } ,
6768 'parallel-workers' : { type : 'string' } ,
@@ -81,6 +82,7 @@ const parseFmtCLIArgs = (args: string[]): ParsedFmtCLIArgs => {
8182 }
8283
8384 const mode = values . check ? 'check' : listDifferent ? 'list-different' : 'write' ;
85+ const ignorePaths = [ ...( values [ 'ignore-path' ] ?? [ ] ) , ...( values . ignorePath ?? [ ] ) ] ;
8486 const noErrorOnUnmatchedPattern =
8587 values [ 'no-error-on-unmatched-pattern' ] ?? values . noErrorOnUnmatchedPattern ?? false ;
8688 const maxWorkers = parseMaxWorkers ( values [ 'parallel-workers' ] , values . parallelWorkers ) ;
@@ -101,7 +103,7 @@ const parseFmtCLIArgs = (args: string[]): ParsedFmtCLIArgs => {
101103 return {
102104 mode,
103105 patterns : positionals ,
104- ignorePaths : values [ 'ignore-path' ] ?? [ ] ,
106+ ignorePaths,
105107 noErrorOnUnmatchedPattern,
106108 maxWorkers,
107109 help : values . help ?? false ,
0 commit comments