add_option variant with initializer list variant with Option object
This commit is contained in:
parent
c93be2ee3c
commit
384f8dab93
@ -1288,6 +1288,13 @@ namespace cxxopts
|
|||||||
std::initializer_list<Option> options
|
std::initializer_list<Option> options
|
||||||
);
|
);
|
||||||
|
|
||||||
|
void
|
||||||
|
add_option
|
||||||
|
(
|
||||||
|
const std::string& group,
|
||||||
|
const Option& option
|
||||||
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
add_option
|
add_option
|
||||||
(
|
(
|
||||||
@ -1915,6 +1922,17 @@ ParseResult::parse(int& argc, char**& argv)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline
|
||||||
|
void
|
||||||
|
Options::add_option
|
||||||
|
(
|
||||||
|
const std::string& group,
|
||||||
|
const Option& option
|
||||||
|
)
|
||||||
|
{
|
||||||
|
add_options(group, {option});
|
||||||
|
}
|
||||||
|
|
||||||
inline
|
inline
|
||||||
void
|
void
|
||||||
Options::add_option
|
Options::add_option
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user