File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -89,21 +89,23 @@ const cli = yargs
89
89
'upper end of the commit range to lint; applies if edit=false' ,
90
90
type : 'string'
91
91
} ,
92
- version : {
93
- alias : 'v' ,
94
- type : 'boolean' ,
95
- description : 'display version information'
96
- } ,
97
92
verbose : {
98
93
alias : 'V' ,
99
94
type : 'boolean' ,
100
95
description : 'enable verbose output for reports without problems'
101
96
}
102
97
} )
103
- . help (
104
- 'help' ,
105
- `${ pkg . name } @${ pkg . version } - ${ pkg . description } \n` +
106
- `[input] reads from stdin if --edit, --env, --from and --to are omitted`
98
+ . version (
99
+ 'version' ,
100
+ 'display version information' ,
101
+ `${ pkg . name } @${ pkg . version } `
102
+ )
103
+ . alias ( 'v' , 'version' )
104
+ . help ( 'help' )
105
+ . alias ( 'h' , 'help' )
106
+ . usage ( `${ pkg . name } @${ pkg . version } - ${ pkg . description } ` )
107
+ . usage (
108
+ `[input] reads from stdin if --edit, --env, --from and --to are omitted`
107
109
) . argv ;
108
110
109
111
main ( cli ) . catch ( err => {
You can’t perform that action at this time.
0 commit comments