ref: 6f479559c4aa6efaaa4352c70d1e7755d2267573
parent: 10639872d6c832f4215fca9f5d33a90b59d8021f
author: Ryan Gonzalez <rymg19@gmail.com>
date: Thu Mar 3 08:58:47 EST 2016
Fix broken help argument stuff
--- a/6/main.c
+++ b/6/main.c
@@ -33,8 +33,8 @@
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 @@
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)) {