Bash++
Bash++ compiler internal documentation
Public Member Functions | Public Attributes | List of all members
Option Struct Reference

Represents a command-line option for the Bash++ compiler. More...

#include <parse_arguments.h>

Public Member Functions

constexpr Option (char shortopt, const char *longopt, const char *description, bool takes_argument)
 

Public Attributes

const char shortopt
 
const char * longopt
 
const char * description
 
const bool takes_argument
 

Detailed Description

Represents a command-line option for the Bash++ compiler.

This struct defines a command-line option, including its short and long forms, a description, and whether it takes an argument. It is fully constexpr to allow compile-time generation of help strings.

Constructor & Destructor Documentation

◆ Option()

constexpr Option::Option ( char  shortopt,
const char *  longopt,
const char *  description,
bool  takes_argument 
)
inlineconstexpr

Member Data Documentation

◆ description

const char* Option::description

◆ longopt

const char* Option::longopt

◆ shortopt

const char Option::shortopt

◆ takes_argument

const bool Option::takes_argument

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