File tree 2 files changed +8
-8
lines changed
2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ const cli = yargs
57
57
description : 'array of shareable configurations to extend' ,
58
58
type : 'array'
59
59
} ,
60
- helpUrl : {
60
+ 'help-url' : {
61
61
alias : 'H' ,
62
62
type : 'string' ,
63
63
description : 'helpurl in error message'
@@ -73,7 +73,7 @@ const cli = yargs
73
73
description : 'output format of the results' ,
74
74
type : 'string'
75
75
} ,
76
- parserPreset : {
76
+ 'parser-preset' : {
77
77
alias : 'p' ,
78
78
description :
79
79
'configuration preset to use for conventional-commits-parser' ,
@@ -232,8 +232,8 @@ async function main(options: CliFlags) {
232
232
const output = format ( report , {
233
233
color : flags . color ,
234
234
verbose : flags . verbose ,
235
- helpUrl : flags . helpUrl
236
- ? flags . helpUrl . trim ( )
235
+ helpUrl : flags [ 'help-url' ]
236
+ ? flags [ 'help-url' ] . trim ( )
237
237
: 'https://github.com/conventional-changelog/commitlint/#what-is-commitlint'
238
238
} ) ;
239
239
@@ -323,8 +323,8 @@ function getSeed(flags: CliFlags): Seed {
323
323
( i ) : i is string => typeof i === 'string'
324
324
) ;
325
325
return n . length > 0
326
- ? { extends : n , parserPreset : flags . parserPreset }
327
- : { parserPreset : flags . parserPreset } ;
326
+ ? { extends : n , parserPreset : flags [ 'parser-preset' ] }
327
+ : { parserPreset : flags [ 'parser-preset' ] } ;
328
328
}
329
329
330
330
function selectParserOpts ( parserPreset : ParserPreset ) {
Original file line number Diff line number Diff line change @@ -6,10 +6,10 @@ export interface CliFlags {
6
6
env ?: string ;
7
7
extends ?: ( string | number ) [ ] ;
8
8
help ?: boolean ;
9
- helpUrl ?: string ;
9
+ 'help-url' ?: string ;
10
10
from ?: string ;
11
11
format ?: string ;
12
- parserPreset ?: string ;
12
+ 'parser-preset' ?: string ;
13
13
quiet : boolean ;
14
14
to ?: string ;
15
15
version ?: boolean ;
You can’t perform that action at this time.
0 commit comments