Don't demand required options if --help or --version is requested.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Bump version to 0.1.2.
This commit is contained in:
parent
28b1d5ec16
commit
be229d25d6
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user