111 if( exitCodeDecl.second->AssociatedCLIException() == element )
112 return exitCodeDecl.first.Integral();
113 ALIB_ERROR(
"CLI",
"No exit-code associated with {}.", element )
#define ALIB_ERROR(domain,...)
static ParameterDecl * GetParameterDecl(CommandLine &cmdLine, const String &identString)
static bool GetDryOpt(CommandLine &cmdLine, Option &dryOpt)
static OptionDecl * GetOptionDecl(CommandLine &cmdLine, const String &identString)
static AString & DumpParseResults(CommandLine &cmdLine, Paragraphs &text)
static AString & DumpDeclarations(CommandLine &cmdLine, Paragraphs &text)
static bool GetHelp(CommandLine &cmdLine, const String &topics, Paragraphs &text)
static integer GetExitCode(CommandLine &cmdLine, Exception &exception)
static CommandDecl * GetCommandDecl(CommandLine &cmdLine, const String &identString)
static AString GetCommandUsageFormat(CommandLine &cmdLine, CommandDecl &commandDecl)
HashMap< MonoAllocator, Enum, ExitCodeDecl * > ExitCodeDecls
Possible Errors.
const Enum & Type() const
lang::integer integer
Type alias in namespace alib.
strings::TString< character > String
Type alias in namespace alib.
exceptions::Exception Exception
Type alias in namespace alib.
cli::CLIUtil CLIUtil
Type alias in namespace alib.
strings::TAString< character, lang::HeapAllocator > AString
Type alias in namespace alib.
format::Paragraphs Paragraphs
Type alias in namespace alib.
A command of a ALib CLI command-line.