diff --git a/src/cxxopts.hpp b/src/cxxopts.hpp index b1d456a..f3908c6 100644 --- a/src/cxxopts.hpp +++ b/src/cxxopts.hpp @@ -906,7 +906,7 @@ Options::help_one_group(const std::string& g) const std::string Options::help(const std::vector& groups) const { - std::string result = "Usage:\n " + m_program + " [OPTION...] " + std::string result = "Usage:\n " + m_program + " [OPTION...]" + m_help_string + "\n\n"; for (const auto& g : groups) diff --git a/src/example.cpp b/src/example.cpp index a1d237c..989d40c 100644 --- a/src/example.cpp +++ b/src/example.cpp @@ -30,7 +30,7 @@ int main(int argc, char* argv[]) { try { - cxxopts::Options options(argv[0]); + cxxopts::Options options(argv[0], " - example command line options"); bool apple = false;