aboutsummaryrefslogtreecommitdiff
path: root/project/src/ui/ui-wlect.c
diff options
context:
space:
mode:
authorWiimm <wiimm@wiimm.de>2022-08-06 16:20:07 +0200
committerWiimm <wiimm@wiimm.de>2022-08-06 16:20:07 +0200
commit7fad9e9383d01cce3ac17176404e1ab4e738736c (patch)
treedf39dd0616554ce9daa138f2e9778c88fbf9ac55 /project/src/ui/ui-wlect.c
parent06ff18cd020779c226f7c25d22016e06b898f303 (diff)
SZS v2.28a.beta2
Diffstat (limited to 'project/src/ui/ui-wlect.c')
-rw-r--r--project/src/ui/ui-wlect.c31
1 files changed, 22 insertions, 9 deletions
diff --git a/project/src/ui/ui-wlect.c b/project/src/ui/ui-wlect.c
index 720e084..d2370c8 100644
--- a/project/src/ui/ui-wlect.c
+++ b/project/src/ui/ui-wlect.c
@@ -468,13 +468,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",
@@ -602,9 +608,9 @@ static const InfoOption_t OptionInfo[OPT__N_TOTAL+1] =
" all --lt-* options."
},
- { OPT_LEX_RM_FEAT, false, true, false, false, false, 0, "rm-features",
+ { OPT_LEX_RM_FEAT, false, false, false, false, false, 0, "rm-features",
0,
- "Remove LEX setion FEA0 (features) if exists. It is executed after"
+ "Remove LEX setion FEAT (features) if exists. It is executed after"
" --lex-purge. --lex-rm-features is an alternative name."
},
@@ -660,7 +666,7 @@ static const InfoOption_t OptionInfo[OPT__N_TOTAL+1] =
" helper option."
},
- {0,0,0,0,0,0,0,0,0,0} // OPT__N_TOTAL == 85
+ {0,0,0,0,0,0,0,0,0,0} // OPT__N_TOTAL == 86
};
@@ -824,7 +830,7 @@ static const KeywordTab_t CommandTab[] =
/////////////// OptionShort & OptionLong ///////////////
///////////////////////////////////////////////////////////////////////////////
-static const char OptionShort[] = "VhqvLW:c:lHBXPM:tCd:D:E:orupi";
+static const char OptionShort[] = "VhqvLYW:c:lHBXPM:tCd:D:E:orupi";
static const struct option OptionLong[] =
{
@@ -843,6 +849,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 },
@@ -999,7 +1008,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,
@@ -1276,6 +1286,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,
@@ -1295,6 +1306,7 @@ static const InfoOption_t * option_tab_tool[] =
OptionInfo + OPT_LT_ENGINE,
OptionInfo + OPT_LT_RANDOM,
OptionInfo + OPT_LEX_PURGE,
+ OptionInfo + OPT_LEX_RM_FEAT,
OptionInfo + OPT_NONE, // separator
@@ -1601,6 +1613,7 @@ static const InfoOption_t * option_tab_cmd_CREATE[] =
OptionInfo + OPT_LT_ENGINE,
OptionInfo + OPT_LT_RANDOM,
OptionInfo + OPT_LEX_PURGE,
+ OptionInfo + OPT_LEX_RM_FEAT,
OptionInfo + OPT_NONE, // separator
@@ -1724,7 +1737,7 @@ static const InfoCommand_t CommandInfo[CMD__N+1] =
"wlect [option]... command [option|parameter|file]...",
"Wiimms LE-CODE Tool : Manage the LE-CODE and LEX extensions.",
0,
- 31,
+ 33,
option_tab_tool,
0
},
@@ -2102,7 +2115,7 @@ static const InfoCommand_t CommandInfo[CMD__N+1] =
" listing.\n"
" Use the command without keyword to get an extended description.",
0,
- 31,
+ 32,
option_tab_cmd_CREATE,
option_allowed_cmd_CREATE
},