cli20 0.1.2
A C++20 typed-schema command-line parser
Loading...
Searching...
No Matches
cli::HelpPalette Struct Reference

ANSI palette used by generated help output. More...

#include <color.hh>

Public Attributes

std::string_view usage {"\033[1m"}
std::string_view heading {"\033[1;4;36m"}
std::string_view option {"\033[1;32m"}
std::string_view metavar {"\033[36m"}
std::string_view command {"\033[1;33m"}
std::string_view metadata {"\033[2m"}
std::string_view group {"\033[1;33m"}
std::string_view reset {"\033[0m"}

Detailed Description

ANSI palette used by generated help output.

Each field is an ANSI SGR sequence. format_help(ColorMode::never, ...) suppresses these sequences regardless of the palette contents.

Definition at line 28 of file color.hh.

Member Data Documentation

◆ command

std::string_view cli::HelpPalette::command {"\033[1;33m"}

Definition at line 33 of file color.hh.

◆ group

std::string_view cli::HelpPalette::group {"\033[1;33m"}

Definition at line 35 of file color.hh.

◆ heading

std::string_view cli::HelpPalette::heading {"\033[1;4;36m"}

Definition at line 30 of file color.hh.

◆ metadata

std::string_view cli::HelpPalette::metadata {"\033[2m"}

Definition at line 34 of file color.hh.

◆ metavar

std::string_view cli::HelpPalette::metavar {"\033[36m"}

Definition at line 32 of file color.hh.

◆ option

std::string_view cli::HelpPalette::option {"\033[1;32m"}

Definition at line 31 of file color.hh.

◆ reset

std::string_view cli::HelpPalette::reset {"\033[0m"}

Definition at line 36 of file color.hh.

◆ usage

std::string_view cli::HelpPalette::usage {"\033[1m"}

Definition at line 29 of file color.hh.


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