File tree 3 files changed +8
-0
lines changed
3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -556,6 +556,7 @@ test('should print help', async () => {
556
556
-t, --to upper end of the commit range to lint; applies if edit=false [string]
557
557
-V, --verbose enable verbose output for reports without problems [boolean]
558
558
-s, --strict enable strict mode; result code 2 for warnings, 3 for errors [boolean]
559
+ --options path to a JSON file or Common.js module containing CLI options
559
560
-v, --version display version information [boolean]
560
561
-h, --help Show help [boolean]"
561
562
` ) ;
Original file line number Diff line number Diff line change @@ -143,6 +143,11 @@ const cli = yargs(process.argv.slice(2))
143
143
. alias ( 'v' , 'version' )
144
144
. help ( 'help' )
145
145
. alias ( 'h' , 'help' )
146
+ . config (
147
+ 'options' ,
148
+ 'path to a JSON file or Common.js module containing CLI options' ,
149
+ require
150
+ )
146
151
. usage ( `${ pkg . name } @${ pkg . version } - ${ pkg . description } \n` )
147
152
. usage (
148
153
`[input] reads from stdin if --edit, --env, --from and --to are omitted`
Original file line number Diff line number Diff line change @@ -36,6 +36,8 @@ Options:
36
36
[boolean]
37
37
-s, --strict enable strict mode; result code 2 for warnings, 3 for
38
38
errors [boolean]
39
+ --options path to a JSON file or Common.js module containing CLI
40
+ options
39
41
-v, --version display version information [boolean]
40
42
-h, --help Show help [boolean]
41
43
` ` `
You can’t perform that action at this time.
0 commit comments