Bash++
Bash++ compiler internal documentation
Public Member Functions | Private Attributes | List of all members
XGetOpt::ParsedOption Class Reference

Represents a parsed command-line option and its associated argument (if any) More...

#include <xgetopt.h>

Public Member Functions

 ParsedOption (int s, std::optional< std::string_view > arg)
 
int getShortOpt () const
 
bool hasArgument () const
 
std::string_view getArgument () const
 

Private Attributes

int shortopt
 
std::optional< std::string_view > argument
 

Detailed Description

Represents a parsed command-line option and its associated argument (if any)

Constructor & Destructor Documentation

◆ ParsedOption()

XGetOpt::ParsedOption::ParsedOption ( int  s,
std::optional< std::string_view >  arg 
)
inline

Member Function Documentation

◆ getArgument()

std::string_view XGetOpt::ParsedOption::getArgument ( ) const
inline

◆ getShortOpt()

int XGetOpt::ParsedOption::getShortOpt ( ) const
inline

◆ hasArgument()

bool XGetOpt::ParsedOption::hasArgument ( ) const
inline

Member Data Documentation

◆ argument

std::optional<std::string_view> XGetOpt::ParsedOption::argument
private

◆ shortopt

int XGetOpt::ParsedOption::shortopt
private

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