Skip to main content

ClikaRT::cli::ExclusiveGroup

class

Header: ClikaRT/cli/command.h

A mutually-exclusive constraint. Lightweight handle, valid while its App lives.

Member functions

add(string_view, ArgType)

Arg add(std::string_view name, ArgType type)

Declare option name of type; returns its Arg builder.

Declared in ClikaRT/cli/command.h, line 133

add(string_view, string_view, ArgType)

Arg add(
    std::string_view long_name,
    std::string_view short_name,
    ArgType type
)

Same as add(name, type), with long + short spellings.

Declared in ClikaRT/cli/command.h, line 135

flag(string_view)

Flag flag(std::string_view name)

Declare boolean flag name; returns its Flag builder.

Declared in ClikaRT/cli/command.h, line 137

flag(string_view, string_view)

Flag flag(std::string_view long_name, std::string_view short_name)

Same as flag(name), with long + short spellings.

Declared in ClikaRT/cli/command.h, line 139