mirror of
https://github.com/CLIUtils/CLI11.git
synced 2025-05-03 14:03:52 +00:00
Adding a little info to the docs
This commit is contained in:
parent
077ba40417
commit
15c86072a6
@ -132,6 +132,8 @@ app.add_set(option_name,
|
||||
|
||||
app.add_set_ignore_case(... // String only
|
||||
|
||||
app.add_help_flag(name, optional_discription);
|
||||
|
||||
App* subcom = app.add_subcommand(name, discription);
|
||||
```
|
||||
|
||||
|
@ -331,6 +331,7 @@ class App {
|
||||
return opt;
|
||||
}
|
||||
|
||||
/// Add a help flag, currently throws an error if already set
|
||||
Option *add_help_flag(std::string name, std::string description = "") {
|
||||
if(help_ptr_)
|
||||
throw IncorrectConstruction("Help flag already initialized");
|
||||
|
Loading…
x
Reference in New Issue
Block a user