argon
0.12.0
Command line argument parser
|
Optional argument with an arbitrary value. More...
#include <Option.hpp>
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 | |
Argument & | operator= (const Argument &)=default |
Argument & | operator= (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 } |
Optional argument with an arbitrary value.