commit 5490268683c82ad07eac6d2e8296a45702a8381e
parent 9ebb54c56852c5f8b62652776115000aafae0bdf
Author: Quentin Carbonneaux <quentin@c9x.me>
Date: Fri, 26 Aug 2022 10:19:27 +0200
flag the default target in "qbe -h"
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/main.c b/main.c
@@ -162,8 +162,11 @@ main(int ac, char *av[])
fprintf(hf, "\t%-11s output to file\n", "-o file");
fprintf(hf, "\t%-11s generate for a target among:\n", "-t <target>");
fprintf(hf, "\t%-11s ", "");
- for (t=tlist, sep=""; *t; t++, sep=", ")
+ for (t=tlist, sep=""; *t; t++, sep=", ") {
fprintf(hf, "%s%s", sep, (*t)->name);
+ if (*t == &Deftgt)
+ fputs(" (default)", hf);
+ }
fprintf(hf, "\n");
fprintf(hf, "\t%-11s generate gas (e) or osx (m) asm\n", "-G {e,m}");
fprintf(hf, "\t%-11s dump debug information\n", "-d <flags>");