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"
55 #if ALIB_DEBUG && !ALIB_DEBUG_ASSERTION_PRINTABLES
57 "Instances of class Cli must not be created. Use singleton alib::CLI" )
65#if !ALIB_CAMP_OMIT_DEFAULT_RESOURCES
72 "E0",
A_CHAR(
"1,NoCommandGiven" ",ED1" ),
73 "E1",
A_CHAR(
"2,UnknownCommand" ",ED2" ),
76 "E2",
A_CHAR(
"10,ParsingOptions" ",ED10" ),
77 "E3",
A_CHAR(
"11,MissingOptionValue" ",ED11" ),
78 "E4",
A_CHAR(
"12,IllegalOptionNameContinuation" ",ED12" ),
81 "E5",
A_CHAR(
"20,ParsingCommand" ",ED20" ),
82 "E6",
A_CHAR(
"21,MissingParameterValue" ",ED21" ) EOS
85 "ED1",
A_CHAR(
"No command given." ),
86 "ED2",
A_CHAR(
"Unknown command found with CLI argument{!Q[]}={!Q}" ),
87 "ED10",
A_CHAR(
"Error parsing option. Usage:\n"
89 "ED20",
A_CHAR(
"Error parsing command.\n"
95 "ED11",
A_CHAR(
"Missing argument(s) of option {!Q<>} found with CLI argument{!Q[]}={!Q}.\n"
96 "Expected {}, given {}." ),
98 "ED12",
A_CHAR(
"Option identifier {!Q<>} found at start of CLI argument{!Q[]}={!Q},\n"
99 "while CLI argument string continues with non-argument identifier characters." ),
101 "ED21",
A_CHAR(
"Missing argument(s) of parameter {!Q<>} found with CLI argument{!Q[]}={!Q}.\n"
102 "Quantity expected {}, quantity given {}." ) EOS
106 "DRM<",
A_CHAR(
"DryRunModes::" ),
107DOX_MARKER([DOX_CLI_DRYRUN_RESOURCES])
108"DRM" ,
A_CHAR(
"0" "," "Off" "," "1" ","
109 "2" "," "CLIDeclarations" "," "4" ","
110 "1" "," "CLIArgs" "," "1" ","
111 "3" "," "Application" "," "1" ),
112DOX_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.