mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-23 19:36:21 +00:00
Zero exit code when printing help and version information in IfcConvert
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user