IfcConvert: add --no-progress option to suppress possible progress bar type of prints that use carriage return.

This commit is contained in:
Stinkfist0
2017-05-23 20:06:35 +03:00
committed by Thomas Krijnen
parent 273c977f66
commit f3f4c41f8d
2 changed files with 14 additions and 5 deletions
+1
View File
@@ -1060,6 +1060,7 @@ bool IfcFile::Init(IfcParse::IfcSpfStream* s) {
Logger::Message(Logger::LOG_ERROR,ex.what());
continue;
}
/// @todo Printing to stdout in a library class feels weird. Maybe move the progress prints to the client code?
// Update the status after every 1000 instances parsed
if ( !((++x)%1000) ) {
std::stringstream ss; ss << "\r#" << currentId;