8#ifndef HPP_ALIB_CLI_CLIUTIL
9#define HPP_ALIB_CLI_CLIUTIL 1
11#if !defined (HPP_ALIB_CLI_COMMANDLINE)
15#if !defined (HPP_ALIB_LANG_FORMAT_PARAGRAPHS)
18#if !defined(HPP_ALIB_CAMP_MESSAGE_REPORT)
23namespace alib {
namespace cli {
137 if( exitCodeDecl.second->AssociatedCLIException() == element )
138 return exitCodeDecl.first.Integral();
139 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< Enum, ExitCodeDecl * > ExitCodeDecls
ALIB_API const Enum & Type() const
lang::integer integer
Type alias in namespace alib.