Porytiles
Loading...
Searching...
No Matches
porytiles::CliOptionMeta Struct Reference

Metadata for a single CLI option, used for shell completion generation. More...

#include <cli_completion_data.hpp>

Collaboration diagram for porytiles::CliOptionMeta:
[legend]

Public Attributes

std::string long_name
 Long option name (e.g., "num-tiles-in-primary")
 
std::string description
 Human-readable description.
 
std::string type_hint
 Type hint for completion (e.g., "integer", "string", "enum")
 
std::vector< std::string > choices
 Valid choices for enum types (empty for non-enums)
 
bool has_negation
 True if this is a bool flag with –no-* variant.
 

Detailed Description

Metadata for a single CLI option, used for shell completion generation.

Definition at line 18 of file cli_completion_data.hpp.

Member Data Documentation

◆ choices

std::vector<std::string> porytiles::CliOptionMeta::choices

Valid choices for enum types (empty for non-enums)

Definition at line 22 of file cli_completion_data.hpp.

◆ description

std::string porytiles::CliOptionMeta::description

Human-readable description.

Definition at line 20 of file cli_completion_data.hpp.

◆ has_negation

bool porytiles::CliOptionMeta::has_negation

True if this is a bool flag with –no-* variant.

Definition at line 23 of file cli_completion_data.hpp.

◆ long_name

std::string porytiles::CliOptionMeta::long_name

Long option name (e.g., "num-tiles-in-primary")

Definition at line 19 of file cli_completion_data.hpp.

◆ type_hint

std::string porytiles::CliOptionMeta::type_hint

Type hint for completion (e.g., "integer", "string", "enum")

Definition at line 21 of file cli_completion_data.hpp.


The documentation for this struct was generated from the following file: