@@ -636,7 +636,7 @@ main(int argc, char *argv[])
636636 char * str ;
637637 str = opal_show_help_string ("help-opal-wrapper.txt" ,
638638 "version" , false,
639- argv [ 0 ] , options_data [user_data_idx ].project , options_data [user_data_idx ].version , options_data [user_data_idx ].language , NULL );
639+ base_argv0 , options_data [user_data_idx ].project , options_data [user_data_idx ].version , options_data [user_data_idx ].language , NULL );
640640 if (NULL != str ) {
641641 printf ("%s" , str );
642642 free (str );
@@ -646,7 +646,7 @@ main(int argc, char *argv[])
646646 0 == strncmp (user_argv [i ], "--showme:help" , strlen ("--showme:help" ))) {
647647 char * str ;
648648 str = opal_show_help_string ("help-opal-wrapper.txt" , "usage" ,
649- false, argv [ 0 ] ,
649+ false, base_argv0 ,
650650 options_data [user_data_idx ].project ,
651651 NULL );
652652 if (NULL != str ) {
@@ -658,10 +658,10 @@ main(int argc, char *argv[])
658658 goto cleanup ;
659659 } else if (0 == strncmp (user_argv [i ], "-showme:" , strlen ("-showme:" )) ||
660660 0 == strncmp (user_argv [i ], "--showme:" , strlen ("--showme:" ))) {
661- fprintf (stderr , "%s: unrecognized option: %s\n" , argv [ 0 ] ,
661+ fprintf (stderr , "%s: unrecognized option: %s\n" , base_argv0 ,
662662 user_argv [i ]);
663663 fprintf (stderr , "Type '%s --showme:help' for usage.\n" ,
664- argv [ 0 ] );
664+ base_argv0 );
665665 exit_status = 1 ;
666666 goto cleanup ;
667667 }
0 commit comments