9#if !defined(ALIB_C20_MODULES) || ((ALIB_C20_MODULES != 0) && (ALIB_C20_MODULES != 1))
10# error "Configuration MACRO ALIB_C20_MODULES has to be given to the compiler as either 0 or 1"
27 import ALib.EnumRecords;
28 import ALib.EnumRecords.Bootstrap;
29 import ALib.Variables;
48"AppVersion",
A_CHAR(
"V.{}."),
55"USAGEFOLLOWS",
A_CHAR(
" Usage information follows:") ,
59"Commands<",
A_CHAR(
"Commands::"),
62"1," "help" ",1" ",TOPIC" ","
63"2," "version" ",3" "," ","
64"3," "info" ",4" "," ","
65"4," "setvariables" ",4" "," ) EOS
69"Shows general help, help on topics and tests custom expressions",
71"Shows general help, respectively detail help on the optionally given TOPIC(s), which "
72"can be a command or an option - or a parameter of such.\n"
73"If command 'help' is given, no further CLI commands are processed and execution is stopped "
74"with the display of the result.\n"
76"Besides AWax options, commands and parameter names, the following special topics are "
77"available in addition:\n"
80"Lists AWax configuration variables which are defaulted in software, configurable with "
81"INI-files (see option --config) and can be overridden using environment variables or "
85"THlpCmdSht_version",
"todo",
86"THlpCmdLng_version",
"todo",
87"THlpCmdSht_info",
"todo",
88"THlpCmdLng_info",
"todo",
89"THlpCmdSht_setvariables",
"todo",
90"THlpCmdLng_setvariables",
"todo",
96"1," "help" ",4," "h," "=" ",0," ","
97"2," "version" ",7," "," "" ",0," ","
98"3," "dryrun" ",6," "d," "=" ",0," ","
99"4," "config" ",6," "c," "=" ",1," ","
100"5," "verbose" ",7," "v," "=" ",0," )EOS
102"Options<",
A_CHAR(
"Options::"),
103"TOptUsg_help" ,
A_CHAR(
"--help[[=]TOPIC]") ,
104"TOptHlp_help" ,
A_CHAR(
"Displays usage information.") ,
105"TOptUsg_version" ,
A_CHAR(
"--version") ,
106"TOptHlp_version" ,
A_CHAR(
"Displays the version of this software.") ,
107"TOptUsg_dryrun" ,
A_CHAR(
"-d|--dryrun[=][DRYRUNMODE]") ,
108"TOptHlp_dryrun" ,
A_CHAR(
"Enables dryrun-mode for sandbox testing. No changes are performed.") ,
109"TOptUsg_config" ,
A_CHAR(
"--config=filename1[[,filename2],filename3]...") ,
110"TOptHlp_config" ,
A_CHAR(
"Allows to change the name (and path) of the configuration file(s)") ,
111"TOptUsg_verbose" ,
A_CHAR(
"--verbose[=\"level\"]") ,
112"TOptHlp_verbose" ,
A_CHAR(
"Changes verbosity to 'VERBOSE' or the optionally given preset. )") EOS
118"0," "FILENAME" ",1," "" "," "=" "," ",-1" ",0" ","
119"1," "TOPIC" ",1," "" "," "=" "," ",-1" ",1" ) EOS
121"Parameters<",
A_CHAR(
"Parameters::"),
122"THlpParSht_TOPIC" ,
A_CHAR(
"Optional parameter of command (or option) 'help'."),
123"THlpParLng_TOPIC" ,
A_CHAR(
"Denotes a specific topic that the help command should be verbose about.")
130 "10," "ErrConfigFileNotFound" ",-1,"
131 "11," "ErrConfigFileNotWritable" ",-1,"
132"127," "UnknownError" ",-1" ) EOS
134"BIExitCodes<",
A_CHAR(
"ExitCodes::")
136,
"TExit0",
A_CHAR(
"Success (no error).")
137,
"TExit10",
A_CHAR(
"Configuration file {!Q} not found.")
138,
"TExit11",
A_CHAR(
"Configuration file {!Q} not writeable.")
139,
"TExit127",
A_CHAR(
"An unexpected (unhandled) internal error occured.")
144"1," "ErrNoCmdGiven" ",-1,"
145"2," "ErrUnknownCommand" ",-1,"
146"3," "ErrParsingOption" ",-1,"
147"4," "ErrParsingCommand" ",-1,"
148"5," "ErrMissingCmdParam" ",-1,"
149"6," "ErrMissingOptParam" ",-1,"
150"7," "ErrBadParamValue" ",-1") EOS
152"ExitCodes<",
A_CHAR(
"ExitCodes::")
154,
"TExit1" ,
A_CHAR(
"No command given.")
155,
"TExit2" ,
A_CHAR(
"Unknown command {!Q} given.")
156,
"TExit3" ,
A_CHAR(
"Unknown option {!Q} was given.")
157,
"TExit4" ,
A_CHAR(
"An error occured when parsing the command {!Q}:")
158,
"TExit5" ,
A_CHAR(
"Missing a mandatory parameter {!Q} of the given command {!Q}.")
159,
"TExit6" ,
A_CHAR(
"Missing a mandatory parameter {!Q} of the given option {!Q}.")
160,
"TExit7" ,
A_CHAR(
"Parameter {!Q} is not suitable for command or option {!Q}.")
164"HlpHdlOpts" ,
A_CHAR(
"OPTIONS:" ) EOS
165"HlpHdlCmds" ,
A_CHAR(
"COMMANDS:" ) EOS
166"HlpHdlExtCds" ,
A_CHAR(
"EXIT-CODES:" ) EOS
167"HlpHdlUsage" ,
A_CHAR(
"USAGE:" ) EOS
168"HlpHdlDscr" ,
A_CHAR(
"DESCRIPTION:" ) EOS
169"HlpHdlPDscr" ,
A_CHAR(
"PARAMETER DESCRIPTION:" ) EOS
170"HlpHdlTopic" ,
A_CHAR(
"Help on {} {!Q<>}:\n" ) EOS
#define ALIB_BOXING_BOOTSTRAP_REGISTER_FAPPEND_FOR_APPENDABLE_TYPE(TAppendable)
virtual void Bootstrap() override
Initialization of the module.
BootstrapPhases GetBootstrapState()
NCString ResourceCategory
SPResourcePool resourcePool
Shared pointer to the resource pool.
Options
Built-in options used with class #"AppCli".
ExitCodes
Built-in exit-code used with class #"AppCli".
Commands
Built-in commands used with class #"AppCli".
Parameters
Built-in parameters of commands and options used with class #"AppCli".
void Bootstrap(camp::Camp &camp, const NString &name, character innerDelim=',', character outerDelim=',')
app::AppCliCamp APPCLI_CAMP
The singleton instance of the camp class used by class #"AppCli".