summaryrefslogtreecommitdiff
path: root/repl.c
diff options
context:
space:
mode:
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);