goptions
Loading...
Searching...
No Matches
goptionsConventions.h
Go to the documentation of this file.
1
16
17#pragma once
18
19namespace goptions {
20
23};
24
25inline constexpr RequiredValue REQUIRED{};
26
43inline constexpr char HELPFILLSPACE[] = " ";
44
53inline constexpr char GVERSION_STRING[] = "version";
54
55// exit codes: 100s
65inline constexpr int EC__NOOPTIONFOUND = 101;
67 102;
69 103;
70inline constexpr int EC__YAML_PARSING_ERROR =
71 104;
72inline constexpr int EC__MANDATORY_NOT_FILLED = 105;
73inline constexpr int EC__BAD_CONVERSION = 106;
74inline constexpr int EC_WRONG_VERBOSITY_LEVEL =
75 107;
77
78} // namespace goptions
constexpr int EC__NOOPTIONFOUND
Option/switch/key not found, or invalid command-line token.
constexpr int EC__DEFINED_SWITCHALREADYPRESENT
Attempted to define a switch name more than once.
constexpr int EC__BAD_CONVERSION
YAML value could not be converted to requested type.
constexpr int EC_WRONG_VERBOSITY_LEVEL
Verbosity/debug values outside accepted range (if enforced).
constexpr int EC__YAML_PARSING_ERROR
YAML file failed to parse (syntax error or parser failure).
constexpr int EC__MANDATORY_NOT_FILLED
Mandatory structured option key missing.
constexpr RequiredValue REQUIRED
constexpr char GVERSION_STRING[]
Reserved option tag used to store version information.
constexpr int EC__DEFINED_OPTION_ALREADY_PRESENT
Attempted to define an option name more than once.
constexpr char HELPFILLSPACE[]
Padding used when printing option/switch help.