ark::core::ParserRule

Defined in header “ark/core/argument_parser.hh”.


Represents a parser rule these can be either option or positional rules. They provide a minimal interface to both.

Methods

  • ~ParserRule()
    Virtual destructor, for cleanup.

  • bool has_name(const std::string_view & name)
    Returns true if this rule has the given name.

  • bool is_required()
    Returns true if this rule is required.