summaryrefslogtreecommitdiff
path: root/6
diff options
context:
space:
mode:
authorRyan Gonzalez <rymg19@gmail.com>2016-03-03 13:58:47 -0600
committerRyan Gonzalez <rymg19@gmail.com>2016-03-03 13:58:47 -0600
commit6f479559c4aa6efaaa4352c70d1e7755d2267573 (patch)
tree3ab2a76141c84a97cc13f52611e0a65fe8a51211 /6
parent10639872d6c832f4215fca9f5d33a90b59d8021f (diff)
downloadmc-6f479559c4aa6efaaa4352c70d1e7755d2267573.tar.gz
Fix broken help argument stuff
Diffstat (limited to '6')
-rw-r--r--6/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/6/main.c b/6/main.c
index c67adf8..d8ee23b 100644
--- a/6/main.c
+++ b/6/main.c
@@ -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)) {