Rework debug flags in settings

This commit is contained in:
Thomas Krijnen
2024-12-10 21:17:37 +01:00
parent fc9bcb0b82
commit 72eed36313
2 changed files with 4 additions and 5 deletions
-1
View File
@@ -244,7 +244,6 @@ int main(int argc, char** argv) {
("help,h", "display usage information") ("help,h", "display usage information")
("version", "display version information") ("version", "display version information")
("verbose,v", po::value(&vcounter)->zero_tokens(), "more verbose log messages. Use twice (-vv) for debugging level.") ("verbose,v", po::value(&vcounter)->zero_tokens(), "more verbose log messages. Use twice (-vv) for debugging level.")
("debug,d", "write boolean operands to file in current directory for debugging purposes")
("quiet,q", "less status and progress output") ("quiet,q", "less status and progress output")
#ifdef WITH_HDF5 #ifdef WITH_HDF5
("cache", "cache geometry creation. Use --cache-file to specify cache file path.") ("cache", "cache geometry creation. Use --cache-file to specify cache file path.")
+4 -4
View File
@@ -169,13 +169,13 @@ namespace ifcopenshell {
static constexpr double defaultvalue = 1.0; static constexpr double defaultvalue = 1.0;
}; };
struct DebugBooleanOperations : public SettingBase<DebugBooleanOperations, double> { struct DebugBooleanOperations : public SettingBase<DebugBooleanOperations, bool> {
static constexpr const char* const name = "debug-boolean"; static constexpr const char* const name = "debug";
static constexpr const char* const description = ""; static constexpr const char* const description = "write boolean operands to file in current directory for debugging purposes";
static constexpr bool defaultvalue = false; static constexpr bool defaultvalue = false;
}; };
struct BooleanAttempt2d : public SettingBase<BooleanAttempt2d, double> { struct BooleanAttempt2d : public SettingBase<BooleanAttempt2d, bool> {
static constexpr const char* const name = "boolean-attempt-2d"; static constexpr const char* const name = "boolean-attempt-2d";
static constexpr const char* const description = "Do not attempt to process boolean subtractions in 2D."; static constexpr const char* const description = "Do not attempt to process boolean subtractions in 2D.";
static constexpr bool defaultvalue = true; static constexpr bool defaultvalue = true;