diff options
author | Ryan Gonzalez <rymg19@gmail.com> | 2016-03-03 13:58:47 -0600 |
---|---|---|
committer | Ryan Gonzalez <rymg19@gmail.com> | 2016-03-03 13:58:47 -0600 |
commit | 6f479559c4aa6efaaa4352c70d1e7755d2267573 (patch) | |
tree | 3ab2a76141c84a97cc13f52611e0a65fe8a51211 /6 | |
parent | 10639872d6c832f4215fca9f5d33a90b59d8021f (diff) | |
download | mc-6f479559c4aa6efaaa4352c70d1e7755d2267573.tar.gz |
Fix broken help argument stuff
Diffstat (limited to '6')
-rw-r--r-- | 6/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -33,8 +33,8 @@ Asmsyntax asmsyntax; static void usage(char *prog) { - printf("%s [-?] [-o outfile] [-d[dbgopts]] inputs\n", prog); - printf("\t-?\tPrint this help\n"); + printf("%s [-?|-h] [-o outfile] [-d[dbgopts]] inputs\n", prog); + printf("\t-?|-h\tPrint this help\n"); printf("\t-o\tOutput to outfile\n"); printf("\t-S\tGenerate assembly source alongside object code\n"); printf("\t-c\tEnable additional (possibly flaky) checking\n"); @@ -165,7 +165,7 @@ int main(int argc, char **argv) outfile = NULL; - optinit(&ctx, "cd:hSo:I:9G", argv, argc); + optinit(&ctx, "cd:?hSo:I:9G", argv, argc); asmsyntax = Defaultasm; while (!optdone(&ctx)) { switch (optnext(&ctx)) { |