argon  0.12.0
Command line argument parser
argon::Option Class Referenceabstract

Base type of all optional arguments. More...

#include <Option.hpp>

Inheritance diagram for argon::Option:
Collaboration diagram for argon::Option:

Public Member Functions

auto format () const -> std::string override
 
virtual void find (std::vector< std::string_view > &args) const =0
 
- Public Member Functions inherited from argon::Argument
 Argument (std::string description)
 
 Argument (const Argument &)=default
 
 Argument (Argument &&) noexcept=default
 
Argumentoperator= (const Argument &)=default
 
Argumentoperator= (Argument &&) noexcept=default
 

Protected Member Functions

 Option (const std::string &flags, const std::string &description)
 
auto flags () const -> std::vector< std::string >
 

Additional Inherited Members

- Protected Attributes inherited from argon::Argument
std::string m_description
 
- Static Protected Attributes inherited from argon::Argument
static constexpr int m_format_width { 24 }
 

Detailed Description

Base type of all optional arguments.


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