Zero exit code when printing help and version information in IfcConvert

This commit is contained in:
Thomas Krijnen
2015-01-23 16:10:49 +00:00
parent f0425b16d1
commit 23d5827229
+2 -2
View File
@@ -135,10 +135,10 @@ int main(int argc, char** argv) {
if (vmap.count("version")) { if (vmap.count("version")) {
printVersion(); printVersion();
return 1; return 0;
} else if (vmap.count("help") || !vmap.count("input-file")) { } else if (vmap.count("help") || !vmap.count("input-file")) {
printUsage(generic_options, geom_options); printUsage(generic_options, geom_options);
return 1; return vmap.count("help") ? 0 : 1;
} }
const bool verbose = vmap.count("verbose") != 0; const bool verbose = vmap.count("verbose") != 0;