argon
0.12.0
Command line argument parser
|
Optional argument with a simple binary state. More...
#include <Option.hpp>
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 | |
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 a simple binary state.