From 23d58272294d89d2963b5aca0a7e1b5df20507c6 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Fri, 23 Jan 2015 16:10:49 +0000 Subject: [PATCH] Zero exit code when printing help and version information in IfcConvert --- src/ifcconvert/IfcConvert.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ifcconvert/IfcConvert.cpp b/src/ifcconvert/IfcConvert.cpp index 668c0fb990..c4d520d094 100644 --- a/src/ifcconvert/IfcConvert.cpp +++ b/src/ifcconvert/IfcConvert.cpp @@ -135,10 +135,10 @@ int main(int argc, char** argv) { if (vmap.count("version")) { printVersion(); - return 1; + return 0; } else if (vmap.count("help") || !vmap.count("input-file")) { printUsage(generic_options, geom_options); - return 1; + return vmap.count("help") ? 0 : 1; } const bool verbose = vmap.count("verbose") != 0;