aboutsummaryrefslogtreecommitdiff
path: root/project/src/wkmpt.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--project/src/wkmpt.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/project/src/wkmpt.c b/project/src/wkmpt.c
index 60ffafb..9c5b341 100644
--- a/project/src/wkmpt.c
+++ b/project/src/wkmpt.c
@@ -17,7 +17,7 @@
* This file is part of the SZS project. *
* Visit https://szs.wiimm.de/ for project details and sources. *
* *
- * Copyright (c) 2011-2021 by Dirk Clemens <wiimm@wiimm.de> *
+ * Copyright (c) 2011-2022 by Dirk Clemens <wiimm@wiimm.de> *
* *
***************************************************************************
* *
@@ -59,6 +59,7 @@ static const char autoname[] = "/course.kmp";
static void help_exit ( bool xmode )
{
+ SetupPager();
fputs( TITLE "\n", stdout );
if (xmode)
@@ -70,6 +71,7 @@ static void help_exit ( bool xmode )
else
PrintHelpCmd(&InfoUI_wkmpt,stdout,0,0,"HELP",0,URI_HOME);
+ ClosePager();
exit(ERR_OK);
}
@@ -385,7 +387,7 @@ static enumError cmd_xexport()
if ( strlen(cr->info) >= sizeof(cr->info) )
printf("ERR: STRLEN(INFO,%#x): %zd >= %zd : %s\n",
cr->ref_id, strlen(cr->info), sizeof(cr->info), cr->info );
-
+
if (!(cr->ref_id&1))
{
const gobj_cond_ref_t *next = cr+1;
@@ -1581,6 +1583,7 @@ static enumError CheckOptions ( int argc, char ** argv, bool is_env )
case GO_QUIET: verbose = verbose > -1 ? -1 : verbose - 1; break;
case GO_VERBOSE: verbose = verbose < 0 ? 0 : verbose + 1; break;
case GO_LOGGING: logging++; break;
+ case GO_WARN: err += ScanOptWarn(optarg); break;
case GO_DE: use_de = true; break;
case GO_CT_CODE: ctcode_enabled = true; break;
case GO_LE_CODE: lecode_enabled = true; break;
@@ -1728,8 +1731,7 @@ static enumError CheckCommand ( int argc, char ** argv )
switch ((enumCommands)cmd_ct->id)
{
case CMD_VERSION: version_exit();
- case CMD_HELP: PrintHelp(&InfoUI_wkmpt,stdout,0,"HELP",0,URI_HOME,
- first_param ? first_param->arg : 0 ); break;
+ case CMD_HELP: PrintHelpColor(&InfoUI_wkmpt); break;
case CMD_CONFIG: err = cmd_config(); break;
case CMD_ARGTEST: err = cmd_argtest(argc,argv); break;
case CMD_TEST: err = cmd_test(); break;