Commit 3f1220e3d8719326eefabe2a7734004f179559af

Authored by Jarryd Beck
1 parent 6bff3c5a

help string

src/cxxopts.hpp
... ... @@ -906,7 +906,7 @@ Options::help_one_group(const std::string& g) const
906 906 std::string
907 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 910 + m_help_string + "\n\n";
911 911  
912 912 for (const auto& g : groups)
... ...
src/example.cpp
... ... @@ -30,7 +30,7 @@ int main(int argc, char* argv[])
30 30 {
31 31 try
32 32 {
33   - cxxopts::Options options(argv[0]);
  33 + cxxopts::Options options(argv[0], " - example command line options");
34 34  
35 35 bool apple = false;
36 36  
... ...