summaryrefslogtreecommitdiff
path: root/repl.c
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2022-10-13 15:07:19 +0200
committerlemon <lsof@mailbox.org>2022-10-13 15:07:19 +0200
commit3bad89b205b211f42e24ec1facf16b6a2ecb1627 (patch)
treec69474b1d941a2775263fa96c6d7d1c7dbe89657 /repl.c
parent1111a904dfa39bf74742549ed5a5a6d205c4b36f (diff)
stack effects + optimize exefn
Diffstat (limited to 'repl.c')
-rw-r--r--repl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/repl.c b/repl.c
index 9aa7bab..dcdb381 100644
--- a/repl.c
+++ b/repl.c
@@ -51,7 +51,7 @@ main(int argc, char **argv) {
if (!strcmp(arg, "-h") || !strcmp(arg, "--help")) {
help();
goto Bye;
- } else if (arg[1] == 'd') {
+ } else if (arg[1] == 'd' && arg[2]) {
pez_debug(cx, arg + 2);
} else {
printf("pez: Invalid option '%s'\n", arg);