@@ -56,7 +56,7 @@ const cli = yargs
56
56
description : 'array of shareable configurations to extend' ,
57
57
type : 'array'
58
58
} ,
59
- 'help-url' : {
59
+ helpUrl : {
60
60
alias : 'H' ,
61
61
type : 'string' ,
62
62
description : 'helpurl in error message'
@@ -72,7 +72,7 @@ const cli = yargs
72
72
description : 'output format of the results' ,
73
73
type : 'string'
74
74
} ,
75
- 'parser-preset' : {
75
+ parserPreset : {
76
76
alias : 'p' ,
77
77
description :
78
78
'configuration preset to use for conventional-commits-parser' ,
@@ -231,8 +231,8 @@ async function main(options: CliFlags) {
231
231
const output = format ( report , {
232
232
color : flags . color ,
233
233
verbose : flags . verbose ,
234
- helpUrl : flags [ 'help-url' ]
235
- ? flags [ 'help-url' ] . trim ( )
234
+ helpUrl : flags . helpUrl
235
+ ? flags . helpUrl . trim ( )
236
236
: 'https://github.com/conventional-changelog/commitlint/#what-is-commitlint'
237
237
} ) ;
238
238
@@ -317,13 +317,13 @@ function getEditValue(flags: CliFlags) {
317
317
return edit ;
318
318
}
319
319
320
- function getSeed ( seed : CliFlags ) : Seed {
321
- const n = ( seed . extends || [ ] ) . filter (
320
+ function getSeed ( flags : CliFlags ) : Seed {
321
+ const n = ( flags . extends || [ ] ) . filter (
322
322
( i ) : i is string => typeof i === 'string'
323
323
) ;
324
324
return n . length > 0
325
- ? { extends : n , parserPreset : seed [ 'parser-preset' ] }
326
- : { parserPreset : seed [ 'parser-preset' ] } ;
325
+ ? { extends : n , parserPreset : flags . parserPreset }
326
+ : { parserPreset : flags . parserPreset } ;
327
327
}
328
328
329
329
function selectParserOpts ( parserPreset : ParserPreset ) {
0 commit comments