summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/support/command-line.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/support/command-line.cpp b/src/support/command-line.cpp
index 0147f9044..23ded0346 100644
--- a/src/support/command-line.cpp
+++ b/src/support/command-line.cpp
@@ -55,6 +55,10 @@ Options::Options(const std::string& command, const std::string& description)
: debug(false), positional(Arguments::Zero) {
std::string GeneralOption = "General options";
+ if (getenv("BINARYEN_DEBUG")) {
+ setDebugEnabled(getenv("BINARYEN_DEBUG"));
+ }
+
add("--version",
"",
"Output version information and exit",