13 #ifndef __STOUT_FLAGS_FLAG_HPP__ 14 #define __STOUT_FLAGS_FLAG_HPP__ 36 Name(
const std::string& _value)
64 explicit Warning(
const std::string& _message) : message(_message) {}
90 lambda::function<Try<Nothing>(
FlagsBase*,
const std::string&)> load;
91 lambda::function<Option<std::string>(
const FlagsBase&)>
stringify;
92 lambda::function<Option<Error>(
const FlagsBase&)>
validate;
114 std::ostream &stream,
120 stream << flag.
value;
127 #endif // __STOUT_FLAGS_FLAG_HPP__ bool boolean
Definition: flag.hpp:89
Option< Error > validate(const std::string &imageDir)
Definition: option.hpp:29
std::vector< Warning > warnings
Definition: flag.hpp:73
const std::string message
Definition: flag.hpp:66
bool deprecated
Definition: flag.hpp:48
std::string value
Definition: flag.hpp:109
Option< Path > path
Definition: flag.hpp:108
bool isSome() const
Definition: option.hpp:116
Name()
Definition: flag.hpp:33
Name(const char *_value)
Definition: flag.hpp:39
std::string help
Definition: flag.hpp:88
Warning(const std::string &_message)
Definition: flag.hpp:64
const T & get() const &
Definition: option.hpp:119
Option< Name > alias
Definition: flag.hpp:80
Name(const std::string &_value)
Definition: flag.hpp:36
Name name
Definition: flag.hpp:79
bool required
Definition: flag.hpp:93
std::string value
Definition: flag.hpp:47
Name DeprecatedName(const std::string &name)
Definition: flag.hpp:52
std::ostream & operator<<(std::ostream &stream, const SecurePathOrValue &flag)
Definition: flag.hpp:113
bool operator==(const Name &other) const
Definition: flag.hpp:42
Option< Name > loaded_name
Definition: flag.hpp:86
std::string stringify(int flags)
const Name & effective_name() const
Definition: flag.hpp:97
constexpr const char * name
Definition: shell.hpp:41