Commit ea1eba70 by Maarten L. Hekkelman

Less strict

parent 4f9a6593
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
cmake_minimum_required(VERSION 3.15) cmake_minimum_required(VERSION 3.15)
# set the project name # set the project name
project(mkdssp VERSION 4.2.0 LANGUAGES CXX) project(mkdssp VERSION 4.2.1 LANGUAGES CXX)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake") list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
......
Version 4.2.1
- The previous version was a bit overly strict
- Introduce a --quiet flag.
Version 4.2.0 Version 4.2.0
- Changes for packaging - Changes for packaging
- New mmCIF DSSP output, added several categories - New mmCIF DSSP output, added several categories
......
...@@ -81,6 +81,7 @@ int d_main(int argc, const char *argv[]) ...@@ -81,6 +81,7 @@ int d_main(int argc, const char *argv[])
mcfp::make_option("help,h", "Display help message"), mcfp::make_option("help,h", "Display help message"),
mcfp::make_option("version", "Print version"), mcfp::make_option("version", "Print version"),
mcfp::make_option("verbose,v", "verbose output"), mcfp::make_option("verbose,v", "verbose output"),
mcfp::make_option("quiet", "Reduce verbose output to a minimum"),
mcfp::make_hidden_option<int>("debug,d", "Debug level (for even more verbose output)")); mcfp::make_hidden_option<int>("debug,d", "Debug level (for even more verbose output)"));
...@@ -112,6 +113,9 @@ int d_main(int argc, const char *argv[]) ...@@ -112,6 +113,9 @@ int d_main(int argc, const char *argv[])
exit(1); exit(1);
} }
if (config.count("quiet"))
cif::VERBOSE = -1;
else
cif::VERBOSE = config.count("verbose"); cif::VERBOSE = config.count("verbose");
// -------------------------------------------------------------------- // --------------------------------------------------------------------
...@@ -138,11 +142,8 @@ int d_main(int argc, const char *argv[]) ...@@ -138,11 +142,8 @@ int d_main(int argc, const char *argv[])
} }
cif::file f = cif::pdb::read(in); cif::file f = cif::pdb::read(in);
if (not f.is_valid()) if (cif::VERBOSE >= 0 and not f.is_valid())
{ std::cerr << "Warning, the input file is not valid. Run with --verbose to see why." << std::endl;
std::cerr << "Could not validate file" << std::endl;
exit(1);
}
// -------------------------------------------------------------------- // --------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment