vg
tools for working with variation graphs
|
#include <option.hpp>
Public Member Functions | |
bool | has_argument () |
void | parse_default (const bool &default_value, bool &value) |
void | parse (const string &arg, bool &value) |
string | unparse (const bool &value) |
Static Public Member Functions | |
static bool | has_argument () |
static void | parse_default (const Value &default_value, Value &value) |
static void | parse (const string &arg, Value &value) |
static string | unparse (const Value &value) |
This class holds static methods explaining how to parse a type.
|
inlinestatic |
Return true if we need an argument and false otherwise.
|
inline |
Bool options don't need arguments.
|
inline |
If someone gives a value to a bool, explode.
|
inlinestatic |
Parse from an argument.
|
inline |
When someone gives a bool option they mean to invert its default value.
|
inlinestatic |
Parse from no argument, but a default value.
|
inline |
Represent default values for bools as true and false.
|
inlinestatic |
Stringify a default value.