aboutsummaryrefslogtreecommitdiff
path: root/project/src/wbmgt.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--project/src/wbmgt.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/project/src/wbmgt.c b/project/src/wbmgt.c
index 3750bce..87ba3ce 100644
--- a/project/src/wbmgt.c
+++ b/project/src/wbmgt.c
@@ -154,11 +154,11 @@ static void hint_exit ( enumError stat )
if ( current_command )
fprintf(stderr,
"-> Type '%s help %s' (pipe it to a pager like 'less') for more help.\n\n",
- progname, CommandInfo[current_command->id].name1 );
+ ProgInfo.progname, CommandInfo[current_command->id].name1 );
else
fprintf(stderr,
"-> Type '%s -h' or '%s help' (pipe it to a pager like 'less') for more help.\n\n",
- progname, progname );
+ ProgInfo.progname, ProgInfo.progname );
exit(stat);
}
@@ -862,7 +862,7 @@ static enumError CheckOptions ( int argc, char ** argv, bool is_env )
NormalizeOptions( verbose > 3 && !is_env ? 2 : 0 );
SetupBMG(filter_bmg);
- return !err ? ERR_OK : max_error ? max_error : ERR_SYNTAX;
+ return !err ? ERR_OK : ProgInfo.max_error ? ProgInfo.max_error : ERR_SYNTAX;
}
//
@@ -951,7 +951,7 @@ static enumError CheckCommand ( int argc, char ** argv )
#endif
{
print_title_func = print_title;
- SetupLib(argc,argv,WBMGT_SHORT);
+ SetupLib(argc,argv,WBMGT_SHORT,VERSION,TITLE);
//----- process arguments