diff options
Diffstat (limited to 'tools/mrbc')
| -rw-r--r-- | tools/mrbc/mrbc.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tools/mrbc/mrbc.c b/tools/mrbc/mrbc.c index b68bf0547..6535d5636 100644 --- a/tools/mrbc/mrbc.c +++ b/tools/mrbc/mrbc.c @@ -19,8 +19,8 @@ struct _args { char *filename; char *initname; char *ext; - int check_syntax : 1; - int verbose : 1; + mrb_bool check_syntax : 1; + mrb_bool verbose : 1; }; static void @@ -83,6 +83,12 @@ parse_args(mrb_state *mrb, int argc, char **argv, struct _args *args) switch ((*argv)[1]) { case 'o': + if (outfile) { + printf("%s: An output file is already specified. (%s)\n", + *origargv, outfile); + result = -5; + goto exit; + } outfile = get_outfilename((*argv) + 2, ""); break; case 'B': |
