aboutsummaryrefslogtreecommitdiff
path: root/project/src/wbmgt.c
diff options
context:
space:
mode:
Diffstat (limited to 'project/src/wbmgt.c')
-rw-r--r--project/src/wbmgt.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/project/src/wbmgt.c b/project/src/wbmgt.c
index e0161b1..6efb5bd 100644
--- a/project/src/wbmgt.c
+++ b/project/src/wbmgt.c
@@ -81,7 +81,7 @@ static void help_exit ( bool xmode )
PrintHelpCmd(&InfoUI_wbmgt,stdout,0,0,"HELP",0,URI_HOME);
ClosePager();
- exit(ERR_OK);
+ ExitFixed(ERR_OK);
}
///////////////////////////////////////////////////////////////////////////////
@@ -106,7 +106,7 @@ static void version_exit()
else
fputs( TITLE "\n", stdout );
- exit(ERR_OK);
+ ExitFixed(ERR_OK);
}
///////////////////////////////////////////////////////////////////////////////
@@ -140,7 +140,7 @@ static void hint_exit ( enumError stat )
fprintf(stderr,
"-> Type '%s -h' or '%s help' (pipe it to a pager like 'less') for more help.\n\n",
ProgInfo.progname, ProgInfo.progname );
- exit(stat);
+ ExitFixed(stat);
}
//
@@ -785,6 +785,7 @@ static enumError CheckOptions ( int argc, char ** argv, bool is_env )
case GO_WIDTH: err += ScanOptWidth(optarg); break;
case GO_MAX_WIDTH: err += ScanOptMaxWidth(optarg); break;
case GO_NO_PAGER: opt_no_pager = true; break;
+ case GO_ZERO: opt_zero++; break;
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;
@@ -991,7 +992,7 @@ static enumError CheckCommand ( int argc, char ** argv )
if (SIGINT_level)
err = ERROR0(ERR_INTERRUPT,"Program interrupted by user.");
ClosePager();
- return err;
+ return FixExitStatus(err);
}
//