BEEP-8 Helper Lib 1.0.0
Loading...
Searching...
No Matches
argparse::Argument Struct Reference

Structure representing a command line argument. More...

#include <argparse.h>

Public Types

enum  Action { do_nothing , store_false , store_true , show_help }
 Enumeration of possible actions for an argument. More...
 

Public Member Functions

void ShowHelp () const
 Display help information for the argument.
 

Public Attributes

std::string _name
 Full name of the argument (e.g., –help)
 
std::string _short_alias
 Short alias for the argument (e.g., -h)
 
std::string _help
 Help description for the argument.
 
Action _action
 Action associated with the argument.
 

Detailed Description

Structure representing a command line argument.

Member Enumeration Documentation

◆ Action

Enumeration of possible actions for an argument.

Enumerator
do_nothing 

No action.

store_false 

Store false (0)

store_true 

Store true (1)

show_help 

Show help message.


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