diff options
Diffstat (limited to 'mld/main.c')
-rw-r--r-- | mld/main.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -10,6 +10,7 @@ void help(void) { printf("options:\n"); printf("\t-h\t\tprints this help message\n"); printf("\t-o <output>\tselect a output file destination\n"); + printf("\t-f\t\tmake this binary freestanding (no runtime)\n"); } int main(int argc, char **argv) { @@ -18,11 +19,12 @@ int main(int argc, char **argv) { .in_files = NULL, .in_count = 0, .out_file = "a.out", + .freestanding = false, }; int c; - while ((c = getopt(argc, argv, "ho:")) != 1) { + while ((c = getopt(argc, argv, "ho:f")) != 1) { switch(c) { case 'h': help(); @@ -30,6 +32,9 @@ int main(int argc, char **argv) { case 'o': args.out_file = optarg; break; + case 'f': + args.freestanding = true; + break; case '?': return M_ERROR; default: |