diff options
| author | Wiimm <wiimm@wiimm.de> | 2024-03-26 10:35:38 +0100 |
|---|---|---|
| committer | Wiimm <wiimm@wiimm.de> | 2024-03-26 10:35:38 +0100 |
| commit | 246fdb38d7c2fb3054b8f8528e11dc8f17691750 (patch) | |
| tree | c106adbb6c640ab93c4b3f19864fde6046b1a759 /project/src/ui/ui-wctct.c | |
| parent | b8aca433e32346c9293acc34a9e2242809ac5692 (diff) | |
SZS 2.42a
Diffstat (limited to '')
| -rw-r--r-- | project/src/ui/ui-wctct.c | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/project/src/ui/ui-wctct.c b/project/src/ui/ui-wctct.c index 2b6b334..aba47a7 100644 --- a/project/src/ui/ui-wctct.c +++ b/project/src/ui/ui-wctct.c @@ -474,6 +474,15 @@ static const InfoOption_t OptionInfo[OPT__N_TOTAL+1] = "Forbid the internal usage of a pager." }, + { OPT_ZERO, false, false, false, false, false, 'z', "zero", + 0, + "This option affects the exit status of the programs. Instead of an" + " exit status, the value 0 is returned for OK. This happens for" + " notices (-v, status<15), warnings (-vv, status<29), errors (-vvv," + " status<115) and fatal errors (-vvvv). The exit status for INTERRUPT" + " (112) is never replaced." + }, + { OPT_QUIET, false, false, false, false, false, 'q', "quiet", 0, "Be quiet and print only error messages. Multiple use is possible." @@ -715,12 +724,12 @@ static const InfoOption_t OptionInfo[OPT__N_TOTAL+1] = " separated list of slots (A), slot ranges (A:B) or keywords is" " expected. If preceded by a minus sign, the slots are disabled. The" " keywords are: TRACKS (slots 0:0x1f), ARENAS (0x20:0x29) and SPECIAL" - " (0x36:0x3a). CTCODE is an abbreviation for ARENAS,SPECIAL.\n" + " (0x36:0x3a). CTCODE is a short cut for ARENAS,SPECIAL.\n" " The default is to enable slot ranges 0x00:0x1f, 0x2a:0x35," " 0x3b:0x41 and 0x44:0xfe." }, - {0,0,0,0,0,0,0,0,0,0} // OPT__N_TOTAL == 91 + {0,0,0,0,0,0,0,0,0,0} // OPT__N_TOTAL == 92 }; @@ -910,7 +919,7 @@ static const KeywordTab_t CommandTab[] = /////////////// OptionShort & OptionLong /////////////// /////////////////////////////////////////////////////////////////////////////// -static const char OptionShort[] = "VhqvLYW:c:lHB1XPNM:T:A:td:D:E:orupi"; +static const char OptionShort[] = "VhzqvLYW:c:lHB1XPNM:T:A:td:D:E:orupi"; static const struct option OptionLong[] = { @@ -927,6 +936,7 @@ static const struct option OptionLong[] = { "maxwidth", 1, 0, GO_MAX_WIDTH }, { "no-pager", 0, 0, GO_NO_PAGER }, { "nopager", 0, 0, GO_NO_PAGER }, + { "zero", 0, 0, 'z' }, { "quiet", 0, 0, 'q' }, { "verbose", 0, 0, 'v' }, { "logging", 0, 0, 'L' }, @@ -1116,7 +1126,9 @@ static const OptionIndex_t OptionIndex[UIOPT_INDEX_SIZE] = /* 0x074 t */ OPT_TEST, /* 0x075 u */ OPT_UPDATE, /* 0x076 v */ OPT_VERBOSE, - /* 0x077 */ 0,0,0,0, 0,0,0,0, 0, + /* 0x077 */ 0,0,0, + /* 0x07a z */ OPT_ZERO, + /* 0x07b */ 0,0,0,0, 0, /* 0x080 */ OPT_XHELP, /* 0x081 */ OPT_CONFIG, /* 0x082 */ OPT_YDEBUG, @@ -1189,7 +1201,8 @@ static const OptionIndex_t OptionIndex[UIOPT_INDEX_SIZE] = /* 0x110 */ 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, /* 0x120 */ 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, /* 0x130 */ 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, - /* 0x140 */ 0,0,0,0, 0,0,0,0, 0,0, + /* 0x140 */ 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, + /* 0x150 */ 0,0,0,0, }; // @@ -1352,6 +1365,7 @@ static const InfoOption_t * option_tab_tool[] = OptionInfo + OPT_WIDTH, OptionInfo + OPT_MAX_WIDTH, OptionInfo + OPT_NO_PAGER, + OptionInfo + OPT_ZERO, OptionInfo + OPT_QUIET, OptionInfo + OPT_VERBOSE, OptionInfo + OPT_LOGGING, @@ -1772,7 +1786,7 @@ static const InfoCommand_t CommandInfo[CMD__N+1] = "Wiimms CT-CODE Tool : Manage the CT-CODE extension. BRRES, TEX0," " CT-CODE, CT-TEXT and LE-BIN files are accepted as input.", 0, - 33, + 34, option_tab_tool, 0 }, |
