8 resourcePool.BootstrapBulk( resourceCategory,
12 "E0" ,
A_CHAR(
"1,NoCommandGiven,ED1"),
13 "E1" ,
A_CHAR(
"2,UnknownCommand,ED2"),
14 "E2" ,
A_CHAR(
"10,ParsingOptions,ED10"),
15 "E3" ,
A_CHAR(
"11,MissingOptionValue,ED11"),
16 "E4" ,
A_CHAR(
"12,IllegalOptionNameContinuation,ED12"),
17 "E5" ,
A_CHAR(
"20,ParsingCommand,ED20"),
18 "E6" ,
A_CHAR(
"21,MissingParameterValue,ED21"),
19 "ED1" ,
A_CHAR(
"No command given."),
20 "ED2" ,
A_CHAR(
"Unknown command found with CLI argument{!Q[]}={!Q}"),
21 "ED10" ,
A_CHAR(
"Error parsing option. Usage:\n")
23 "ED20" ,
A_CHAR(
"Error parsing command. Usage: {}\n")
25 "ED11" ,
A_CHAR(
"Missing argument(s) of option {!Q<>} found with CLI argument{!Q[]}={!Q}.\n")
26 A_CHAR(
"Expected {}, given {}."),
27 "ED12" ,
A_CHAR(
"Option identifier {!Q<>} found at start of CLI argument{!Q[]}={!Q},\n")
28 A_CHAR(
"while CLI argument string continues with non-argument identifier characters."),
29 "ED21" ,
A_CHAR(
"Missing argument(s) of parameter {!Q<>} found with CLI argument{!Q[]}={!Q}.\n")
30 A_CHAR(
"Quantity expected {}, quantity given {}."),
31 "AppVersion" ,
A_CHAR(
"V.{}."),
32 "Commands<" ,
A_CHAR(
"Commands::"),
33 "Commands" ,
A_CHAR(
"1,help,1,TOPIC,2,version,3,,3,info,4,"),
34 "THlpCmdSht_help" ,
A_CHAR(
"Shows general help or help on topics,"),
35 "THlpCmdLng_help" ,
A_CHAR(
"Shows general help, respectively detail help on the optionally given TOPIC(s), which can be a command or an option - or a parameter of such.\n")
36 A_CHAR(
"If command 'help' is given, no further CLI commands are processed and execution is stopped."),
37 "THlpCmdSht_version",
A_CHAR(
"Shows the version of this software."),
38 "THlpCmdLng_version",
A_CHAR(
"Shows the version of this software."),
39 "THlpCmdSht_info" ,
A_CHAR(
"Shows information about this software."),
40 "THlpCmdLng_info" ,
A_CHAR(
"Shows information about this software."),
41 "Options<,Options::",
A_CHAR(
""),
42 "Options" ,
A_CHAR(
"1,help,4,h,=,0,,2,version,7,,,0,,3,dryrun,6,d,=,0,,4,config,6,c,=,1,,5,verbose,7,v,=,0,"),
43 "TOptUsg_help" ,
A_CHAR(
"--help[[=]TOPIC]"),
44 "TOptHlp_help" ,
A_CHAR(
"Displays usage information."),
45 "TOptUsg_version" ,
A_CHAR(
"--version"),
46 "TOptHlp_version" ,
A_CHAR(
"Displays the version of this software."),
47 "TOptUsg_dryrun" ,
A_CHAR(
"-d|--dryrun[=yes|no]"),
48 "TOptHlp_dryrun" ,
A_CHAR(
"Enables dryrun-mode for sandbox testing. No changes are performed."),
49 "TOptUsg_config" ,
A_CHAR(
"--config=filename1[[,filename2],filename3]..."),
50 "TOptHlp_config" ,
A_CHAR(
"Allows to change the name (and path) of the configuration file(s)"),
51 "TOptUsg_verbose" ,
A_CHAR(
"--verbose[=level]"),
52 "TOptHlp_verbose" ,
A_CHAR(
"Changes verbosity to 'VERBOSE' or the optionally given preset."),
53 "Parameters" ,
A_CHAR(
"1,TOPIC,1,,=,,-1,1"),
54 "Parameters<" ,
A_CHAR(
"Parameters::"),
55 "THlpParSht_TOPIC" ,
A_CHAR(
"Optional parameter of command (or option) 'help'."),
56 "THlpParLng_TOPIC" ,
A_CHAR(
"Denotes a specific topic that the help command should be verbose about."),
57 "ExitCodes<" ,
A_CHAR(
"ExitCodes::"),
58 "ExitCodes" ,
A_CHAR(
"0,OK,1,ErrNoCmdGiven,2,ErrUnknownCommand,3,ErrParsingOption,4,ErrParsingCommand,5,ErrMissingCmdParam,6,ErrMissingOptParam,7,ErrBadParamValue,10,ErrConfigFileNotFound,11,ErrConfigFileNotWritable,127,UnknownError"),
59 "TExit0" ,
A_CHAR(
"Success (no error)."),
60 "TExit1" ,
A_CHAR(
"No command given."),
61 "TExit2" ,
A_CHAR(
"Unknown command {!Q} given."),
62 "TExit3" ,
A_CHAR(
"Unknown option {!Q} was given."),
63 "TExit4" ,
A_CHAR(
"An error occurred when parsing the command {!Q}."),
64 "TExit5" ,
A_CHAR(
"Missing a mandatory parameter {!Q} of the given command {!Q}."),
65 "TExit6" ,
A_CHAR(
"Missing a mandatory parameter {!Q} of the given option {!Q}."),
66 "TExit7" ,
A_CHAR(
"Parameter {!Q} is not suitable for command or option {!Q}."),
67 "TExit10" ,
A_CHAR(
"Configuration file {!Q} not found."),
68 "TExit11" ,
A_CHAR(
"Configuration file {!Q} not writeable."),
69 "TExit127" ,
A_CHAR(
"An unexpected (unhandled) internal error occurred."),
70 "HlpHdlOpts" ,
A_CHAR(
"OPTIONS:"),
71 "HlpHdlCmds" ,
A_CHAR(
"COMMANDS:"),
72 "HlpHdlExtCds" ,
A_CHAR(
"EXIT-CODES:"),
73 "HlpHdlUsage" ,
A_CHAR(
"USAGE:"),
74 "HlpHdlDscr" ,
A_CHAR(
"DESCRIPTION:"),
75 "HlpHdlPDscr" ,
A_CHAR(
"PARAMETER DESCRIPTION:"),
76 "HlpHdlTopic" ,
A_CHAR(
"Help on {} {!Q<>}:\n"),
88#if !ALIB_CAMP_OMIT_DEFAULT_RESOURCES
#define ALIB_BOXING_BOOTSTRAP_REGISTER_FAPPEND_FOR_APPENDABLE_TYPE(TAppendable)
virtual void Bootstrap() override
Initialization of the module.
Parameters
Built-in parameters of commands and options used with class #"App".
Options
Built-in options used with class #"App".
Commands
Built-in commands used with class #"App".
BootstrapPhases GetBootstrapState()
bool Do(const NString &alibrcFileName, const NString &callingFile, Camp &campInstance, const NString &resourceCategory, bool allowReplacements, const NString &cppFileName)
NCString ResourceCategory
ResourcePool & GetResourcePool()
void Bootstrap(camp::Camp &camp, const NString &name, character innerDelim=',', character outerDelim=',')
resources::ResourcePool ResourcePool
Type alias in namespace #"%alib".
strings::TCString< nchar > NCString
Type alias in namespace #"%alib".
app::AppCamp APP
The singleton instance of the camp class used by class #"App".