mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 18:16:40 +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")) {
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user