ALib C++ Framework
by
Library Version: 2605 R0
Documentation generated by doxygen
Loading...
Searching...
No Matches
appcamp.alibrc
1/// \file
2// #################################################################################################
3// ALib C++ Framework
4// Resources of ALib Camp "App"
5//
6// Copyright 2025 A-Worx GmbH, Germany
7// Published under Boost Software License (a free software license, see LICENSE.txt)
8// #################################################################################################
9
10//------------------------------------------ CLI Exceptions ----------------------------------------
11// general exceptions
12E< app::
13E0 ~ 1 , NoCommandGiven , ED1
14E1 ~ 2 , UnknownCommand , ED2
15E2 ~ 10 , ParsingOptions , ED10
16E3 ~ 11 , MissingOptionValue , ED11
17E4 ~ 12 , IllegalOptionNameContinuation , ED12
18E5 ~ 20 , ParsingCommand , ED20
19E6 ~ 21 , MissingParameterValue , ED21
20
21// messages of general exceptions
22ED1 No command given.
23ED2 Unknown command found with CLI argument{!Q[]}={!Q}
24ED10 >|
25 Error parsing option. Usage:\n
26 {}
27ED20 >|
28 Error parsing command. Usage: {}\n
29 {}
30
31// messages of internal exceptions
32ED11 >|
33 Missing argument(s) of option {!Q<>} found with CLI argument{!Q[]}={!Q}.\n
34 Expected {}, given {}.
35ED12 >|
36 Option identifier {!Q<>} found at start of CLI argument{!Q[]}={!Q},\n
37 while CLI argument string continues with non-argument identifier characters.
38ED21 >|
39 Missing argument(s) of parameter {!Q<>} found with CLI argument{!Q[]}={!Q}.\n
40 Quantity expected {}, quantity given {}.
41
42//------------------------------------------ Single Strings ----------------------------------------
43AppVersion V.{}.
44
45//--------------------------------------------- Commands -------------------------------------------
46Commands< Commands::
47//enum ident minread Params
48Commands ~|
49 1, help ,1 ,TOPIC ,
50 2, version ,3 , ,
51 3, info ,4 ,
52
53
54THlpCmdSht_help Shows general help or help on topics,
55THlpCmdLng_help >|
56 Shows general help, respectively detail help on the optionally given TOPIC(s), which
57 can be a command or an option - or a parameter of such.\n
58 If command 'help' is given, no further CLI commands are processed and execution is stopped.
59
60THlpCmdSht_version Shows the version of this software.
61THlpCmdLng_version Shows the version of this software.
62THlpCmdSht_info Shows information about this software.
63THlpCmdLng_info Shows information about this software.
64
65
66//--------------------------------------------- Options --------------------------------------------
67Options<,Options::
68 //enum ident minread identChar in-arg-separ. args to consume ShortcutTo
69Options ~|
70 1, help ,4, h, = ,0, ,
71 2, version ,7, , ,0, ,
72 3, dryrun ,6, d, = ,0, ,
73 4, config ,6, c, = ,1, ,
74 5, verbose ,7, v, = ,0,
75
76TOptUsg_help --help[[=]TOPIC]
77TOptHlp_help Displays usage information.
78TOptUsg_version --version
79TOptHlp_version Displays the version of this software.
80TOptUsg_dryrun -d|--dryrun[=yes|no]
81TOptHlp_dryrun Enables dryrun-mode for sandbox testing. No changes are performed.
82TOptUsg_config --config=filename1[[,filename2],filename3]...
83TOptHlp_config Allows to change the name (and path) of the configuration file(s)
84TOptUsg_verbose --verbose[=\level\‍]
85TOptHlp_verbose Changes verbosity to 'VERBOSE' or the optionally given preset.
86
87
88//-------------------------------------------- Parameters ------------------------------------------
89// enum name minIdentLen identifier in-arg-sep delim args to consume isOptional
90// (if empty -> mandatory!)
91Parameters ~|
92 1, TOPIC ,1, , = , ,-1 ,1
93
94Parameters< Parameters::
95THlpParSht_TOPIC Optional parameter of command (or option) 'help'.
96THlpParLng_TOPIC Denotes a specific topic that the help command should be verbose about.
97
98
99//-------------------------------------------- ExitCodes -------------------------------------------
100ExitCodes< ExitCodes::
101ExitCodes ~|
102 0, OK ,
103 1, ErrNoCmdGiven ,
104 2, ErrUnknownCommand ,
105 3, ErrParsingOption ,
106 4, ErrParsingCommand ,
107 5, ErrMissingCmdParam ,
108 6, ErrMissingOptParam ,
109 7, ErrBadParamValue ,
110 10, ErrConfigFileNotFound ,
111 11, ErrConfigFileNotWritable ,
112 127, UnknownError
113
114TExit0 Success (no error).
115TExit1 No command given.
116TExit2 Unknown command {!Q} given.
117TExit3 Unknown option {!Q} was given.
118TExit4 An error occurred when parsing the command {!Q}.
119TExit5 Missing a mandatory parameter {!Q} of the given command {!Q}.
120TExit6 Missing a mandatory parameter {!Q} of the given option {!Q}.
121TExit7 Parameter {!Q} is not suitable for command or option {!Q}.
122TExit10 Configuration file {!Q} not found.
123TExit11 Configuration file {!Q} not writeable.
124TExit127 An unexpected (unhandled) internal error occurred.
125
126
127//-------------------------------------------- Help Texts ------------------------------------------
128HlpHdlOpts OPTIONS:
129HlpHdlCmds COMMANDS:
130HlpHdlExtCds EXIT-CODES:
131HlpHdlUsage USAGE:
132HlpHdlDscr DESCRIPTION:
133HlpHdlPDscr PARAMETER DESCRIPTION:
134HlpHdlTopic Help on {} {!Q<>}:\n