8#ifndef HPP_ALIB_CLI_CLIUTIL
9#define HPP_ALIB_CLI_CLIUTIL 1
16namespace alib {
namespace cli {
130 if( exitCodeDecl.second->AssociatedCLIException() == element )
131 return exitCodeDecl.first.Integral();
132 ALIB_ERROR(
"CLI",
"No exit code associated with {}.", element )
static ALIB_API CommandDecl * GetCommandDecl(CommandLine &cmdLine, const String &identString)
static ALIB_API integer GetExitCode(CommandLine &cmdLine, Exception &exception)
static ALIB_API ParameterDecl * GetParameterDecl(CommandLine &cmdLine, const String &identString)
static ALIB_API OptionDecl * GetOptionDecl(CommandLine &cmdLine, const String &identString)
static ALIB_API AString & DumpDeclarations(CommandLine &cmdLine, Paragraphs &text)
static ALIB_API bool GetHelp(CommandLine &cmdLine, Command *helpCmd, Option *helpOpt, Paragraphs &text)
static ALIB_API AString GetCommandUsageFormat(CommandLine &cmdLine, CommandDecl &commandDecl)
static ALIB_API AString & DumpParseResults(CommandLine &cmdLine, Paragraphs &text)
static ALIB_API bool GetDryOpt(CommandLine &cmdLine, Option &dryOpt)
HashMap< MonoAllocator, Enum, ExitCodeDecl * > ExitCodeDecls
Possible Errors.
ALIB_API const Enum & Type() const
lang::integer integer
Type alias in namespace alib.
A command of a ALib CLI command line.