aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 45f3226..2e6fb35 100644
--- a/main.c
+++ b/main.c
@@ -65,7 +65,7 @@ int main(int argc, char **argv) {
{
case 0: break;
case 'a': mode = PRINT_AST; break;
- case 'h': mode = PRINT_HELP; break;
+ case 'h': print_help(); return 0;
}
}
if (optind == argc - 1)