ascii-chat
Binary v0.16.114-28-gf5913657f
Library lib/v0.3.2-3302-gf5913657f
Video chat in your terminal
Loading...
Searching...
No Matches
example_descriptor_t Struct Reference

Example descriptor for programmatic EXAMPLES generation. More...

#include <include/ascii-chat/options/builder.h>

Data Fields

uint32_t mode_bitmask
const char * args
 Command-line arguments part of the example.
const char * description
bool owns_args_memory
bool is_utility_command

Detailed Description

Example descriptor for programmatic EXAMPLES generation.

Stores command components separately for semantic coloring:

  • mode_bitmask: which modes this example applies to
  • args: green

Definition at line 352 of file builder.h.

Field Documentation

◆ args

const char* example_descriptor_t::args

Command-line arguments part of the example.

Definition at line 355 of file builder.h.

Referenced by manpage_content_generate_examples().

◆ description

const char* example_descriptor_t::description

Definition at line 356 of file builder.h.

Referenced by manpage_content_generate_examples().

◆ is_utility_command

bool example_descriptor_t::is_utility_command

True if this is a utility command (don't prepend program name)

Definition at line 359 of file builder.h.

◆ mode_bitmask

uint32_t example_descriptor_t::mode_bitmask

Bitmask of modes (OPTION_MODE_SERVER, OPTION_MODE_CLIENT, etc.)

Definition at line 353 of file builder.h.

Referenced by manpage_content_generate_examples().

◆ owns_args_memory

bool example_descriptor_t::owns_args_memory

True if args memory should be freed by options_config_destroy

Definition at line 357 of file builder.h.


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