argon 0.12.0
Command line argument parser
Loading...
Searching...
No Matches
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 >
 
- Protected Member Functions inherited from argon::Argument
auto format (std::string_view string) const -> std::string
 

Additional Inherited Members

- Protected Attributes inherited from argon::Argument
std::string m_description
 

Detailed Description

Base type of all optional arguments.

Member Function Documentation

◆ format()

auto argon::Option::format ( ) const -> std::string
overridevirtual

Implements argon::Argument.


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