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