diff --git a/CMakeLists.txt b/CMakeLists.txt index 635283d..0bfa657 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,7 +5,7 @@ set(CMAKE_BUILD_TYPE "Release" CACHE STRING "The type of build.") set(XGETTEXT_CMD "xgettext" CACHE STRING "The command for xgettext.") project(epubgrep - VERSION 0.1.1 + VERSION 0.1.2 DESCRIPTION "Search tool for EPUB ebooks" LANGUAGES CXX) diff --git a/src/options.cpp b/src/options.cpp index 087f3e4..fad0942 100644 --- a/src/options.cpp +++ b/src/options.cpp @@ -102,8 +102,11 @@ po::variables_map parse_options(int argc, char *argv[]) } catch (const boost::program_options::required_option &e) { - cout << options_visible; - std::rethrow_exception(std::current_exception()); + if (vm.count("help") + vm.count("version") == 0) + { + cout << options_visible; + std::rethrow_exception(std::current_exception()); + } } if (vm.count("help") != 0)