summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLieuwe Rooijakkers <lieuwerooijakkers@gmail.com>2024-07-14 13:41:06 +0200
committerLieuwe Rooijakkers <lieuwerooijakkers@gmail.com>2024-07-14 13:41:06 +0200
commitb245fc46be1d08ba17f411e924c26b72ee0e9cc9 (patch)
tree96ce8d38897c72ada8c6916ad78db1b37fc4909f
parent81f3757f0859224ff605bb388d9c3a186837dcdb (diff)
drukkedoos: toon hulpmiddelen
-rw-r--r--main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/main.c b/main.c
index 1148495..e251f5f 100644
--- a/main.c
+++ b/main.c
@@ -20,7 +20,11 @@ int main(int argc, char **argv) {
argv++;
argc--;
if (argc == 0) {
- fprintf(stderr, "Gebruik: drukkedoos <commando>\n");
+#define X(name) " " #name "\n"
+ fprintf(stderr, "Gebruik: drukkedoos <commando>\n\n"
+ "Hulpmiddelen:\n"
+ PROGNAMES_XLIST);
+#undef X
return 1;
}
prognamearg = basename(argv[0]);