diff options
| author | mryouse | 2023-06-11 22:01:03 +0000 |
|---|---|---|
| committer | mryouse | 2023-06-11 22:01:03 +0000 |
| commit | 211b5e24163311168c4e03f62521ec85a53a8839 (patch) | |
| tree | 9b01a2e2c1f1f550efa0ec9b803480a4c9933632 | |
| parent | 4dcd2fd24a2a09df4eaef5a425a168146ce96a4d (diff) | |
add debug flag
| -rw-r--r-- | dbg.d | 4 | ||||
| -rw-r--r-- | main.d | 2 |
2 files changed, 2 insertions, 4 deletions
@@ -8,9 +8,7 @@ import parser; //import dbg; //import value; -bool DEBUG = true; -//bool DEBUG = false; - +bool DEBUG = false; bool REPL = false; @@ -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); |
