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

Optional argument with an arbitrary value. More...

#include <Option.hpp>

Inheritance diagram for argon::ValueOption:
Collaboration diagram for argon::ValueOption:

Public Member Functions

 ValueOption (const std::string &flags, const std::string &description, std::function< void(std::string_view)> callback)
 
auto format () const -> std::string override
 
void find (std::vector< std::string_view > &args) const 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 an arbitrary value.


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