@@ -673,7 +673,7 @@ int main(int argc, char *argv[])
673
673
== strncmp (user_argv [i ], "--showme:version" ,
674
674
strlen ("--showme:version" ))) {
675
675
char * str ;
676
- str = opal_show_help_string ("help-opal-wrapper.txt" , "version" , false, argv [ 0 ] ,
676
+ str = opal_show_help_string ("help-opal-wrapper.txt" , "version" , false, base_argv0 ,
677
677
options_data [user_data_idx ].project ,
678
678
options_data [user_data_idx ].version ,
679
679
options_data [user_data_idx ].language , NULL );
@@ -685,7 +685,7 @@ int main(int argc, char *argv[])
685
685
} else if (0 == strncmp (user_argv [i ], "-showme:help" , strlen ("-showme:help" ))
686
686
|| 0 == strncmp (user_argv [i ], "--showme:help" , strlen ("--showme:help" ))) {
687
687
char * str ;
688
- str = opal_show_help_string ("help-opal-wrapper.txt" , "usage" , false, argv [ 0 ] ,
688
+ str = opal_show_help_string ("help-opal-wrapper.txt" , "usage" , false, base_argv0 ,
689
689
options_data [user_data_idx ].project , NULL );
690
690
if (NULL != str ) {
691
691
printf ("%s" , str );
@@ -696,7 +696,7 @@ int main(int argc, char *argv[])
696
696
goto cleanup ;
697
697
} else if (0 == strncmp (user_argv [i ], "-showme:" , strlen ("-showme:" ))
698
698
|| 0 == strncmp (user_argv [i ], "--showme:" , strlen ("--showme:" ))) {
699
- fprintf (stderr , "%s: unrecognized option: %s\n" , argv [ 0 ] , user_argv [i ]);
699
+ fprintf (stderr , "%s: unrecognized option: %s\n" , base_argv0 , user_argv [i ]);
700
700
fprintf (stderr , "Type '%s --showme:help' for usage.\n" , argv [0 ]);
701
701
exit_status = 1 ;
702
702
goto cleanup ;
0 commit comments