summaryrefslogtreecommitdiff
path: root/masm/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'masm/main.c')
-rw-r--r--masm/main.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/masm/main.c b/masm/main.c
index 760e4fa..caa8420 100644
--- a/masm/main.c
+++ b/masm/main.c
@@ -8,14 +8,14 @@ void help(void) {
printf("usage: masm [options] source.asm\n\n");
printf("options:\n");
printf("\t-h\t\tprints this help message\n");
- printf("\t-o output\tselect a output file destination\n");
+ printf("\t-o <output>\tselect a output file destination\n");
}
int main(int argc, char **argv) {
struct assembler_arguments args = {
.in_file = NULL,
- .out_file = NULL,
+ .out_file = "out.o",
};
int c;
@@ -48,9 +48,5 @@ next:
args.in_file = argv[optind];
- if (args.out_file == NULL) {
- args.out_file = "out.o";
- }
-
return assemble_file(args);
}