File tree 2 files changed +2
-4
lines changed
2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -442,8 +442,7 @@ test('should print help', async () => {
442
442
--cwd, -d directory to execute in
443
443
[string] [default: (Working Directory)]
444
444
--edit, -e read last commit message from the specified file or
445
- fallbacks to ./.git/COMMIT_EDITMSG
446
- [string] [default: false]
445
+ fallbacks to ./.git/COMMIT_EDITMSG [string]
447
446
--env, -E check message in the file at path given by environment
448
447
variable value [string]
449
448
--extends, -x array of shareable configurations to extend [array]
Original file line number Diff line number Diff line change @@ -42,7 +42,6 @@ const cli = yargs
42
42
} ,
43
43
edit : {
44
44
alias : 'e' ,
45
- default : false ,
46
45
description :
47
46
'read last commit message from the specified file or fallbacks to ./.git/COMMIT_EDITMSG' ,
48
47
type : 'string' ,
@@ -112,7 +111,7 @@ const cli = yargs
112
111
)
113
112
. strict ( ) ;
114
113
115
- main ( cli . argv ) . catch ( ( err ) => {
114
+ main ( { edit : false , ... cli . argv } ) . catch ( ( err ) => {
116
115
setTimeout ( ( ) => {
117
116
if ( err . type === pkg . name ) {
118
117
process . exit ( 1 ) ;
You can’t perform that action at this time.
0 commit comments