aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTeddy <[email protected]>2014-03-25 18:36:57 +0800
committerTeddy <[email protected]>2014-03-25 18:36:57 +0800
commitbebc7300ad6987e76db8fca785a83123ba08a927 (patch)
tree8ca74cbe8f4a709332e2de4a6ceb150c50c9d4bd
parent546a8dd1f1129bb74f6e07c1d22366ccf8506ad3 (diff)
...
-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)