ReXGlue SDK
Loading...
Searching...
No Matches
cli.h File Reference
#include <algorithm>
#include <optional>
#include <span>
#include <string>
#include <string_view>
#include <vector>
#include <rex/platform.h>
#include <rex/types.h>

Go to the source code of this file.

Classes

struct  rex::CLIOption
class  rex::CLIArgList
struct  rex::CLIAction
struct  rex::CLIActionHit

Namespaces

namespace  rex

Macros

#define REX_CLI_ACTION(name, description)

Detailed Description

License
BSD 3-Clause License See LICENSE file in the project root for full license text.

Macro Definition Documentation

◆ REX_CLI_ACTION

#define REX_CLI_ACTION ( name,
description )
Value:
::rex::detail::MakeAction(#name, description)

Declares a command line action. The name is a bare token, so no dotted name can be declared.

Parameters
nameThe action name without quotes, such as repair.
descriptionOne line that says what the action does.
static constexpr std::array<rex::CLIAction, 1> kActions = {
REX_CLI_ACTION(repair, "Opens the installer wizard in repair mode.")};
#define REX_CLI_ACTION(name, description)
Definition cli.h:144