args  6.2.0
A simple single-header C++11 STL-only argument parser library
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
args::EitherFlag Struct Reference

A simple unified option type for unified initializer lists for the Matcher class. More...

#include <args.hxx>

Public Member Functions

 EitherFlag (const std::string &flag)
 
 EitherFlag (const char *flag)
 
 EitherFlag (const char flag)
 
std::string str () const
 
std::string str (const std::string &shortPrefix, const std::string &longPrefix) const
 

Static Public Member Functions

static std::unordered_set< std::string > GetLong (std::initializer_list< EitherFlag > flags)
 Get just the long flags from an initializer list of EitherFlags.
 
static std::unordered_set< char > GetShort (std::initializer_list< EitherFlag > flags)
 Get just the short flags from an initializer list of EitherFlags.
 

Public Attributes

const bool isShort
 
const char shortFlag
 
const std::string longFlag
 

Detailed Description

A simple unified option type for unified initializer lists for the Matcher class.


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