Commit 79cd791fb7ff30b76b976c51dfc03efb1b825208

Authored by Henry Fredrick Schreiner
Committed by Henry Schreiner
1 parent ce007eb5

Adding README mention

README.md
... ... @@ -210,6 +210,7 @@ There are several options that are supported on the main app and subcommands. Th
210 210 * `.set_callback(void() function)`: Set the callback that runs at the end of parsing. The options have already run at this point.
211 211 * `.allow_extras()`: Do not throw an error if extra arguments are left over
212 212 * `.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.
  213 +* `.set_footer(message)`: Set text to appear at the bottom of the help string.
213 214  
214 215 > Note: if you have a fixed number of required positional options, that will match before subcommand names.
215 216  
... ...
include/CLI/App.hpp
... ... @@ -836,8 +836,8 @@ class App {
836 836 detail::format_help(out, com->get_name(), com->description_, wid);
837 837 }
838 838  
839   - if (!footer_.empty()) {
840   - out << std::endl << footer_ << std::endl;
  839 + if(!footer_.empty()) {
  840 + out << std::endl << footer_ << std::endl;
841 841 }
842 842  
843 843 return out.str();
... ...