aboutsummaryrefslogtreecommitdiffstats
path: root/src/program/program.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/program/program.c')
-rw-r--r--src/program/program.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/program/program.c b/src/program/program.c
index 5cf8cc3..1e7882d 100644
--- a/src/program/program.c
+++ b/src/program/program.c
@@ -48,6 +48,8 @@ struct Options* parse_command_line(int argc,char **argv)
ret->target=OPTION_TARGET_TOKENS;
else if(!strncmp(argv[i],"--print-ast",sizeof("--print-ast")))
ret->target=OPTION_TARGET_AST;
+ else if(!strncmp(argv[i],"--print-c",sizeof("--print-c")))
+ ret->target=OPTION_TARGET_C;
else if(!strncmp(argv[i],"-o",sizeof("-o")) || !strncmp(argv[i],"--output",sizeof("--output")))
{
if(++i<argc)
@@ -78,7 +80,7 @@ struct Options* parse_command_line(int argc,char **argv)
}
if(ret->target==OPTION_DEFAULT)
- ret->target=OPTION_TARGET_AST;
+ ret->target=OPTION_TARGET_C;
return ret;
}