8#if !defined(ALIB_C20_MODULES) || ((ALIB_C20_MODULES != 0) && (ALIB_C20_MODULES != 1))
9# error "Symbol ALIB_C20_MODULES has to be given to the compiler as either 0 or 1"
56 #if ALIB_DEBUG && !ALIB_DEBUG_ASSERTION_PRINTABLES
58 "Instances of class Cli must not be created. Use singleton alib::CLI" )
68#if !ALIB_CAMP_OMIT_DEFAULT_RESOURCES
75 "E0",
A_CHAR(
"1,NoCommandGiven" ",ED1" ),
76 "E1",
A_CHAR(
"2,UnknownCommand" ",ED2" ),
79 "E2",
A_CHAR(
"10,ParsingOptions" ",ED10" ),
80 "E3",
A_CHAR(
"11,MissingOptionValue" ",ED11" ),
81 "E4",
A_CHAR(
"12,IllegalOptionNameContinuation" ",ED12" ),
84 "E5",
A_CHAR(
"20,ParsingCommand" ",ED20" ),
85 "E6",
A_CHAR(
"21,MissingParameterValue" ",ED21" ) EOS
88 "ED1",
A_CHAR(
"No command given." ),
89 "ED2",
A_CHAR(
"Unknown command found with CLI argument{!Q[]}={!Q}" ),
90 "ED10",
A_CHAR(
"Error parsing option. Usage:\n"
92 "ED20",
A_CHAR(
"Error parsing command.\n"
98 "ED11",
A_CHAR(
"Missing argument(s) of option {!Q<>} found with CLI argument{!Q[]}={!Q}.\n"
99 "Expected {}, given {}." ),
101 "ED12",
A_CHAR(
"Option identifier {!Q<>} found at start of CLI argument{!Q[]}={!Q},\n"
102 "while CLI argument string continues with non-argument identifier characters." ),
104 "ED21",
A_CHAR(
"Missing argument(s) of parameter {!Q<>} found with CLI argument{!Q[]}={!Q}.\n"
105 "Quantity expected {}, quantity given {}." ) EOS
109 "DRM<",
A_CHAR(
"DryRunModes::" ),
110DOX_MARKER([DOX_CLI_DRYRUN_RESOURCES])
111"DRM" ,
A_CHAR(
"0" "," "Off" "," "1" ","
112 "2" "," "CLIDeclarations" "," "4" ","
113 "1" "," "CLIArgs" "," "1" ","
114 "3" "," "Application" "," "1" ),
115DOX_MARKER([DOX_CLI_DRYRUN_RESOURCES])
NCString ResourceCategory
BootstrapPhases GetBootstrapState()
Camp(const NCString &resourceCategory)
SPResourcePool resourcePool
virtual void Bootstrap() override
Initializes this camp.
#define ALIB_BOXING_VTABLE_DEFINE(TMapped, Identifier)
#define ALIB_ASSERT_ERROR(cond, domain,...)
void Bootstrap(camp::Camp &camp, const NString &name, character innerDelim=',', character outerDelim=',')
@ Final
The final initialization phase. Here, camps are initializing their custom setup.
cli::CliCamp CLI
The singleton instance of ALib Camp class CliCamp.