File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -946,9 +946,8 @@ void Init(int* argc,
946
946
}
947
947
948
948
if (per_process::cli_options->print_v8_help ) {
949
- // Doesn't return.
950
949
V8::SetFlagsFromString (" --help" , static_cast <size_t >(6 ));
951
- UNREACHABLE ( );
950
+ exit ( 0 );
952
951
}
953
952
954
953
*argc = argv_.size ();
@@ -1010,13 +1009,16 @@ InitializationResult InitializeOncePerProcess(int argc, char** argv) {
1010
1009
if (per_process::cli_options->print_bash_completion ) {
1011
1010
std::string completion = options_parser::GetBashCompletion ();
1012
1011
printf (" %s\n " , completion.c_str ());
1013
- exit (0 );
1012
+ result.exit_code = 0 ;
1013
+ result.early_return = true ;
1014
+ return result;
1014
1015
}
1015
1016
1016
1017
if (per_process::cli_options->print_v8_help ) {
1017
- // Doesn't return.
1018
1018
V8::SetFlagsFromString (" --help" , static_cast <size_t >(6 ));
1019
- UNREACHABLE ();
1019
+ result.exit_code = 0 ;
1020
+ result.early_return = true ;
1021
+ return result;
1020
1022
}
1021
1023
1022
1024
#if HAVE_OPENSSL
You can’t perform that action at this time.
0 commit comments