commit 0f2fdc5
chld
·
2026-04-13 21:06:46 +0000 UTC
parent ecea3e3
a more descriptive usage function
1 files changed,
+10,
-1
+10,
-1
1@@ -11,7 +11,16 @@
2 static void
3 usage(FILE *fp, const char *argv0)
4 {
5- fprintf(fp, "usage: %s [-agd] [-C dir] [makefile]\n", argv0);
6+ fprintf(fp, "usage: %s [-agdh] [-C dir] [makefile]\n", argv0);
7+
8+ fputchar(fp, '\n');
9+
10+ fprintf(fp, "a makefile compiler\n\n");
11+ fprintf(fp, "\t-h\t print program usage and description\n");
12+ fprintf(fp, "\t-a\t dump ast\n");
13+ fprintf(fp, "\t-g\t dump graphviz dot\n");
14+ fprintf(fp, "\t-d\t dump graph\n");
15+ fprintf(fp, "\t-C\t directory to change to for makefile\n");
16 }
17
18 static char *