@@ -34,7 +34,7 @@ cmdline
34
34
. option ( '-c, --config [path]' , 'path to configuration file, or - to read from stdin' )
35
35
. option ( '--cwd [path]' , 'run all tasks in specific directory, instead of the current' )
36
36
. option ( '-d, --debug' , 'print additional debug information' , false )
37
- . option ( '--max-arg-length' , 'maximum length of the command-line argument string' )
37
+ . option ( '--max-arg-length [number] ' , 'maximum length of the command-line argument string' , 0 )
38
38
. option ( '--no-stash' , 'disable the backup stash, and do not revert in case of errors' , false )
39
39
. option ( '-q, --quiet' , 'disable lint-staged’s own console output' , false )
40
40
. option ( '-r, --relative' , 'pass relative filepaths to tasks' , false )
@@ -61,7 +61,7 @@ const options = {
61
61
configPath : cmdlineOptions . config ,
62
62
cwd : cmdlineOptions . cwd ,
63
63
debug : ! ! cmdlineOptions . debug ,
64
- maxArgLength : JSON . parse ( cmdlineOptions . maxArgLength || null ) ,
64
+ maxArgLength : cmdlineOptions . maxArgLength || undefined ,
65
65
quiet : ! ! cmdlineOptions . quiet ,
66
66
relative : ! ! cmdlineOptions . relative ,
67
67
shell : cmdlineOptions . shell /* Either a boolean or a string pointing to the shell */ ,
0 commit comments