From 8a71af819df100718d4a08f7bc06b46cdb4c571a Mon Sep 17 00:00:00 2001 From: Xavier Robin <xavier.robin@unibas.ch> Date: Tue, 23 Jul 2024 12:08:25 +0200 Subject: [PATCH] fix: better error message --- modules/conop/src/chemdict_tool.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/conop/src/chemdict_tool.cc b/modules/conop/src/chemdict_tool.cc index 36d43ebb0..89499b698 100644 --- a/modules/conop/src/chemdict_tool.cc +++ b/modules/conop/src/chemdict_tool.cc @@ -78,7 +78,8 @@ int main(int argc, char const *argv[]) } else if (param=="-q") { Logger::Instance().PushVerbosityLevel(0); } else { - PrintUsage(); + std::cout << "Unrecognized argument '" << param << "'" << std::endl; + std::cout << "Try 'chemdict_tool -h' for more information" << std::endl; return 1; } } -- GitLab