aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormryouse2023-06-11 22:01:03 +0000
committermryouse2023-06-11 22:01:03 +0000
commit211b5e24163311168c4e03f62521ec85a53a8839 (patch)
tree9b01a2e2c1f1f550efa0ec9b803480a4c9933632
parent4dcd2fd24a2a09df4eaef5a425a168146ce96a4d (diff)
add debug flag
-rw-r--r--dbg.d4
-rw-r--r--main.d2
2 files changed, 2 insertions, 4 deletions
diff --git a/dbg.d b/dbg.d
index 4223678..902e017 100644
--- a/dbg.d
+++ b/dbg.d
@@ -8,9 +8,7 @@ import parser;
//import dbg;
//import value;
-bool DEBUG = true;
-//bool DEBUG = false;
-
+bool DEBUG = false;
bool REPL = false;
diff --git a/main.d b/main.d
index 683eeb0..66542bd 100644
--- a/main.d
+++ b/main.d
@@ -61,7 +61,7 @@ string getCore(bool noCore) {
int main(string[] args) {
bool noCore = false;
- getopt(args, "no-core", &noCore);
+ getopt(args, "no-core", &noCore, "d", &DEBUG);
if (args.length <= 1) {
repl(noCore);