Permalink
Browse files

Fixed abug with -v flag.

  • Loading branch information...
1 parent d8397d8 commit 36b89229a8cbc9e41487356ad4c16d1808f4b2c0 @franapoli committed Nov 16, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/main.cpp
View
@@ -37,7 +37,7 @@ Options:\n\
-o: specify output file name\n\
-v: print version information\n\
-l: error line number offset\n\n\
- ";
+";
void say(const char *string, bool iserr = true) {
char outs[100] = "\0";
@@ -64,6 +64,7 @@ int main(int argc, char *argv[]) {
sprintf(text, "%s Version %d.%d\n", "Leaf Graph Language Compiler",
0, 1);
say(text, false);
+ return 0;
break;
case 'h':
fprintf(stdout, "%s", helptext);

0 comments on commit 36b8922

Please sign in to comment.