|
constexpr bool | operator== (tri t, bool b) noexcept |
|
constexpr bool | operator== (bool b, tri t) noexcept |
|
constexpr bool | operator!= (tri t, bool b) noexcept |
|
constexpr bool | operator!= (bool b, tri t) noexcept |
|
template<class T , class V > |
detail::assign_value< T, V > | set (T &target, V value) |
| makes function object with a const char* parameter that assigns a value to a ref-captured object More...
|
|
template<class T > |
detail::map_arg_to< T > | set (T &target) |
| makes parameter-less function object that assigns value(s) to a ref-captured object; value(s) are obtained by converting the const char* argument to the captured object types; bools are always set to true if the argument is not nullptr More...
|
|
detail::assign_value< bool > | set (bool &target) |
| makes function object that sets a bool to true More...
|
|
detail::assign_value< bool > | unset (bool &target) |
| makes function object that sets a bool to false More...
|
|
detail::flip_bool | flip (bool &b) |
| makes function object that flips the value of a ref-captured bool More...
|
|
template<class T > |
detail::increment< T > | increment (T &target) |
| makes function object that increments using operator ++ More...
|
|
template<class T > |
detail::increment_by< T > | increment (T &target, T by) |
| makes function object that decrements using operator – More...
|
|
template<class T > |
detail::decrement< T > | decrement (T &target) |
| makes function object that increments by a fixed amount using operator += More...
|
|
template<class String , class... Strings> |
parameter | command (String &&flag, Strings &&... flags) |
| makes required non-blocking exact match parameter More...
|
|
template<class String , class... Strings> |
parameter | required (String &&flag, Strings &&... flags) |
| makes required non-blocking exact match parameter More...
|
|
template<class String , class... Strings> |
parameter | option (String &&flag, Strings &&... flags) |
| makes optional, non-blocking exact match parameter More...
|
|
template<class... Targets> |
parameter | value (const doc_string &label, Targets &&... tgts) |
| makes required, blocking, repeatable value parameter; matches any non-empty string More...
|
|
template<class Filter , class... Targets, class = typename std::enable_if< traits::is_callable<Filter,bool(const char*)>::value || traits::is_callable<Filter,subrange(const char*)>::value>::type> |
parameter | value (Filter &&filter, doc_string label, Targets &&... tgts) |
|
template<class... Targets> |
parameter | values (const doc_string &label, Targets &&... tgts) |
| makes required, blocking, repeatable value parameter; matches any non-empty string More...
|
|
template<class Filter , class... Targets, class = typename std::enable_if< traits::is_callable<Filter,bool(const char*)>::value || traits::is_callable<Filter,subrange(const char*)>::value>::type> |
parameter | values (Filter &&filter, doc_string label, Targets &&... tgts) |
|
template<class... Targets> |
parameter | opt_value (const doc_string &label, Targets &&... tgts) |
| makes optional, blocking value parameter; matches any non-empty string More...
|
|
template<class Filter , class... Targets, class = typename std::enable_if< traits::is_callable<Filter,bool(const char*)>::value || traits::is_callable<Filter,subrange(const char*)>::value>::type> |
parameter | opt_value (Filter &&filter, doc_string label, Targets &&... tgts) |
|
template<class... Targets> |
parameter | opt_values (const doc_string &label, Targets &&... tgts) |
| makes optional, blocking, repeatable value parameter; matches any non-empty string More...
|
|
template<class Filter , class... Targets, class = typename std::enable_if< traits::is_callable<Filter,bool(const char*)>::value || traits::is_callable<Filter,subrange(const char*)>::value>::type> |
parameter | opt_values (Filter &&filter, doc_string label, Targets &&... tgts) |
|
template<class... Targets> |
parameter | word (const doc_string &label, Targets &&... tgts) |
| makes required, blocking value parameter; matches any string consisting of alphanumeric characters More...
|
|
template<class... Targets> |
parameter | words (const doc_string &label, Targets &&... tgts) |
| makes required, blocking, repeatable value parameter; matches any string consisting of alphanumeric characters More...
|
|
template<class... Targets> |
parameter | opt_word (const doc_string &label, Targets &&... tgts) |
| makes optional, blocking value parameter; matches any string consisting of alphanumeric characters More...
|
|
template<class... Targets> |
parameter | opt_words (const doc_string &label, Targets &&... tgts) |
| makes optional, blocking, repeatable value parameter; matches any string consisting of alphanumeric characters More...
|
|
template<class... Targets> |
parameter | number (const doc_string &label, Targets &&... tgts) |
| makes required, blocking value parameter; matches any string that represents a number More...
|
|
template<class... Targets> |
parameter | numbers (const doc_string &label, Targets &&... tgts) |
| makes required, blocking, repeatable value parameter; matches any string that represents a number More...
|
|
template<class... Targets> |
parameter | opt_number (const doc_string &label, Targets &&... tgts) |
| makes optional, blocking value parameter; matches any string that represents a number More...
|
|
template<class... Targets> |
parameter | opt_numbers (const doc_string &label, Targets &&... tgts) |
| makes optional, blocking, repeatable value parameter; matches any string that represents a number More...
|
|
template<class... Targets> |
parameter | integer (const doc_string &label, Targets &&... tgts) |
| makes required, blocking value parameter; matches any string that represents an integer More...
|
|
template<class... Targets> |
parameter | integers (const doc_string &label, Targets &&... tgts) |
| makes required, blocking, repeatable value parameter; matches any string that represents an integer More...
|
|
template<class... Targets> |
parameter | opt_integer (const doc_string &label, Targets &&... tgts) |
| makes optional, blocking value parameter; matches any string that represents an integer More...
|
|
template<class... Targets> |
parameter | opt_integers (const doc_string &label, Targets &&... tgts) |
| makes optional, blocking, repeatable value parameter; matches any string that represents an integer More...
|
|
template<class... Targets> |
parameter | any_other (Targets &&... tgts) |
| makes catch-all value parameter More...
|
|
group | operator, (parameter a, parameter b) |
| makes a group of parameters and/or groups More...
|
|
group | operator, (parameter a, group b) |
|
group | operator, (group a, parameter b) |
|
group | operator, (group a, group b) |
|
template<class Param , class... Params> |
group | one_of (Param param, Params... params) |
| makes a group of alternative parameters or groups More...
|
|
group | operator| (parameter a, parameter b) |
| makes a group of alternative parameters or groups More...
|
|
group | operator| (parameter a, group b) |
|
group | operator| (group a, parameter b) |
|
group | operator| (group a, group b) |
|
template<class Param , class... Params> |
group | in_sequence (Param param, Params... params) |
| makes a parameter/group sequence by making all input objects blocking More...
|
|
group | operator& (parameter a, parameter b) |
| makes a parameter/group sequence by making all input objects blocking More...
|
|
group | operator& (parameter a, group b) |
|
group | operator& (group a, parameter b) |
|
group | operator& (group a, group b) |
|
group & | joinable (group ¶m) |
| makes a group of parameters and/or groups where all single char flag params ("-a", "b", ...) are joinable More...
|
|
group && | joinable (group &¶m) |
|
template<class... Params> |
group | joinable (parameter param, Params... params) |
|
template<class P2 , class... Ps> |
group | joinable (group p1, P2 p2, Ps... ps) |
|
template<class Param , class... Params> |
group | joinable (doc_string docstr, Param param, Params... params) |
|
parameter | repeatable (parameter p) |
| makes a repeatable copy of a parameter More...
|
|
group | repeatable (group g) |
| makes a repeatable copy of a group More...
|
|
template<class P2 , class... Ps> |
group | repeatable (parameter p1, P2 p2, Ps... ps) |
| makes a group of parameters and/or groups that is repeatable as a whole Note that a repeatable group consisting entirely of non-blocking children is equivalent to a non-repeatable group of repeatable children. More...
|
|
template<class P2 , class... Ps> |
group | repeatable (group p1, P2 p2, Ps... ps) |
|
parameter && | with_prefix (const arg_string &prefix, parameter &&p) |
| recursively prepends a prefix to all flags More...
|
|
group & | with_prefix (const arg_string &prefix, group ¶ms) |
|
group && | with_prefix (const arg_string &prefix, group &¶ms) |
|
template<class Param , class... Params> |
group | with_prefix (arg_string prefix, Param &¶m, Params &&... params) |
|
parameter && | with_prefixes_short_long (const arg_string &shortpfx, const arg_string &longpfx, parameter &&p) |
| recursively prepends a prefix to all flags More...
|
|
group & | with_prefixes_short_long (const arg_string &shortFlagPrefix, const arg_string &longFlagPrefix, group ¶ms) |
|
group && | with_prefixes_short_long (const arg_string &shortFlagPrefix, const arg_string &longFlagPrefix, group &¶ms) |
|
template<class Param , class... Params> |
group | with_prefixes_short_long (const arg_string &shortFlagPrefix, const arg_string &longFlagPrefix, Param &¶m, Params &&... params) |
|
parsing_result | parse (arg_list args, const group &cli) |
| parses vector of arg strings and executes actions More...
|
|
parsing_result | parse (std::initializer_list< const char * > arglist, const group &cli) |
| parses initializer_list of C-style arg strings and executes actions More...
|
|
template<class InputIterator > |
parsing_result | parse (InputIterator first, InputIterator last, const group &cli) |
| parses range of arg strings and executes actions More...
|
|
parsing_result | parse (const int argc, char *argv[], const group &cli, arg_index offset=1) |
| parses the standard array of command line arguments; omits argv[0] More...
|
|
man_page | make_man_page (const group ¶ms, doc_string progname="", const doc_formatting &fmt=doc_formatting{}) |
| generates man sections from command line parameters with sections "synopsis" and "options" More...
|
|
template<class OStream > |
OStream & | operator<< (OStream &os, const man_page &man) |
| generates man page based on command line parameters More...
|
|