argon  0.12.0
Command line argument parser
argon::BasicOption Class Referencefinal

Optional argument with a simple binary state. More...

#include <Option.hpp>

Inheritance diagram for argon::BasicOption:
Collaboration diagram for argon::BasicOption:

Public Member Functions

 BasicOption (const std::string &flags, const std::string &description, std::function< void()> callback)
 
void find (std::vector< std::string_view > &args) const override
 
- Public Member Functions inherited from argon::Option
auto format () const -> std::string override
 
- 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
 

Additional Inherited Members

- Protected Member Functions inherited from argon::Option
 Option (const std::string &flags, const std::string &description)
 
auto flags () const -> std::vector< std::string >
 
- 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

Optional argument with a simple binary state.


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