Commit 3f1220e3d8719326eefabe2a7734004f179559af
1 parent
6bff3c5a
help string
Showing
2 changed files
with
2 additions
and
2 deletions
src/cxxopts.hpp
| @@ -906,7 +906,7 @@ Options::help_one_group(const std::string& g) const | @@ -906,7 +906,7 @@ Options::help_one_group(const std::string& g) const | ||
| 906 | std::string | 906 | std::string |
| 907 | Options::help(const std::vector<std::string>& groups) const | 907 | Options::help(const std::vector<std::string>& groups) const |
| 908 | { | 908 | { |
| 909 | - std::string result = "Usage:\n " + m_program + " [OPTION...] " | 909 | + std::string result = "Usage:\n " + m_program + " [OPTION...]" |
| 910 | + m_help_string + "\n\n"; | 910 | + m_help_string + "\n\n"; |
| 911 | 911 | ||
| 912 | for (const auto& g : groups) | 912 | for (const auto& g : groups) |
src/example.cpp
| @@ -30,7 +30,7 @@ int main(int argc, char* argv[]) | @@ -30,7 +30,7 @@ int main(int argc, char* argv[]) | ||
| 30 | { | 30 | { |
| 31 | try | 31 | try |
| 32 | { | 32 | { |
| 33 | - cxxopts::Options options(argv[0]); | 33 | + cxxopts::Options options(argv[0], " - example command line options"); |
| 34 | 34 | ||
| 35 | bool apple = false; | 35 | bool apple = false; |
| 36 | 36 |