1
0
mirror of https://github.com/CLIUtils/CLI11.git synced 2025-05-07 15:33:51 +00:00

Adding README mention

This commit is contained in:
Henry Fredrick Schreiner 2017-11-20 09:37:00 -05:00 committed by Henry Schreiner
parent ce007eb5a2
commit 79cd791fb7
2 changed files with 3 additions and 2 deletions

View File

@ -210,6 +210,7 @@ There are several options that are supported on the main app and subcommands. Th
* `.set_callback(void() function)`: Set the callback that runs at the end of parsing. The options have already run at this point.
* `.allow_extras()`: Do not throw an error if extra arguments are left over
* `.prefix_command()`: Like `allow_extras`, but stop immediately on the first unrecognised item. It is ideal for allowing your app or subcommand to be a "prefix" to calling another app.
* `.set_footer(message)`: Set text to appear at the bottom of the help string.
> Note: if you have a fixed number of required positional options, that will match before subcommand names.

View File

@ -836,8 +836,8 @@ class App {
detail::format_help(out, com->get_name(), com->description_, wid);
}
if (!footer_.empty()) {
out << std::endl << footer_ << std::endl;
if(!footer_.empty()) {
out << std::endl << footer_ << std::endl;
}
return out.str();