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,
946946 }
947947
948948 if (per_process::cli_options->print_v8_help ) {
949- // Doesn't return.
950949 V8::SetFlagsFromString (" --help" , static_cast <size_t >(6 ));
951- UNREACHABLE ( );
950+ exit ( 0 );
952951 }
953952
954953 *argc = argv_.size ();
@@ -1010,13 +1009,16 @@ InitializationResult InitializeOncePerProcess(int argc, char** argv) {
10101009 if (per_process::cli_options->print_bash_completion ) {
10111010 std::string completion = options_parser::GetBashCompletion ();
10121011 printf (" %s\n " , completion.c_str ());
1013- exit (0 );
1012+ result.exit_code = 0 ;
1013+ result.early_return = true ;
1014+ return result;
10141015 }
10151016
10161017 if (per_process::cli_options->print_v8_help ) {
1017- // Doesn't return.
10181018 V8::SetFlagsFromString (" --help" , static_cast <size_t >(6 ));
1019- UNREACHABLE ();
1019+ result.exit_code = 0 ;
1020+ result.early_return = true ;
1021+ return result;
10201022 }
10211023
10221024#if HAVE_OPENSSL
You can’t perform that action at this time.
0 commit comments