From 3f1220e3d8719326eefabe2a7734004f179559af Mon Sep 17 00:00:00 2001 From: Jarryd Beck Date: Fri, 17 Oct 2014 11:59:40 +1100 Subject: [PATCH] help string --- src/cxxopts.hpp | 2 +- src/example.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; -- libgit2 0.21.4