From 7fad9e9383d01cce3ac17176404e1ab4e738736c Mon Sep 17 00:00:00 2001 From: Wiimm Date: Sat, 6 Aug 2022 16:20:07 +0200 Subject: SZS v2.28a.beta2 --- project/src/ui/ui-wctct.c | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) (limited to 'project/src/ui/ui-wctct.c') diff --git a/project/src/ui/ui-wctct.c b/project/src/ui/ui-wctct.c index 2d15c1f..8941129 100644 --- a/project/src/ui/ui-wctct.c +++ b/project/src/ui/ui-wctct.c @@ -474,13 +474,19 @@ static const InfoOption_t OptionInfo[OPT__N_TOTAL+1] = { OPT_LOGGING, false, false, false, false, false, 'L', "logging", 0, "This debug option enables the logging of internal lists and maps. Set" - " it up to three times to be more verbose.\n" + " it up to three times to be more verbose." + }, + + { OPT_EXT_ERRORS, false, false, false, false, false, 'Y', "extended-errors", + 0, + "Enable extended error messages. This includes a source file and line" + " reference. Logging level 1 activates it too. --xerr is a short cut." }, { OPT_TIMING, false, false, false, false, false, 0, "timing", 0, "Activate the timing of some operations. Logging level 3 activates" - " them too.\n" + " them too." }, { OPT_WARN, false, false, false, false, false, 'W', "warn", @@ -690,7 +696,7 @@ static const InfoOption_t OptionInfo[OPT__N_TOTAL+1] = " 0x3b:0x41 and 0x44:0xfe." }, - {0,0,0,0,0,0,0,0,0,0} // OPT__N_TOTAL == 86 + {0,0,0,0,0,0,0,0,0,0} // OPT__N_TOTAL == 87 }; @@ -880,7 +886,7 @@ static const KeywordTab_t CommandTab[] = /////////////// OptionShort & OptionLong /////////////// /////////////////////////////////////////////////////////////////////////////// -static const char OptionShort[] = "VhqvLW:c:lHB1XPNM:T:A:td:D:E:orupi"; +static const char OptionShort[] = "VhqvLYW:c:lHB1XPNM:T:A:td:D:E:orupi"; static const struct option OptionLong[] = { @@ -899,6 +905,9 @@ static const struct option OptionLong[] = { "quiet", 0, 0, 'q' }, { "verbose", 0, 0, 'v' }, { "logging", 0, 0, 'L' }, + { "extended-errors", 0, 0, 'Y' }, + { "extendederrors", 0, 0, 'Y' }, + { "xerr", 0, 0, 'Y' }, { "timing", 0, 0, GO_TIMING }, { "warn", 1, 0, 'W' }, { "de", 0, 0, GO_DE }, @@ -1058,7 +1067,8 @@ static const OptionIndex_t OptionIndex[UIOPT_INDEX_SIZE] = /* 0x056 V */ OPT_VERSION, /* 0x057 W */ OPT_WARN, /* 0x058 X */ OPT_EXPORT, - /* 0x059 */ 0,0,0,0, 0,0,0,0, 0,0, + /* 0x059 Y */ OPT_EXT_ERRORS, + /* 0x05a */ 0,0,0,0, 0,0,0,0, 0, /* 0x063 c */ OPT_CONST, /* 0x064 d */ OPT_DEST, /* 0x065 */ 0,0,0, @@ -1309,6 +1319,7 @@ static const InfoOption_t * option_tab_tool[] = OptionInfo + OPT_QUIET, OptionInfo + OPT_VERBOSE, OptionInfo + OPT_LOGGING, + OptionInfo + OPT_EXT_ERRORS, OptionInfo + OPT_TIMING, OptionInfo + OPT_WARN, OptionInfo + OPT_DE, @@ -1696,7 +1707,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, - 31, + 32, option_tab_tool, 0 }, -- cgit v1.3.1