correct help message
authorLaurent Mazet <mazet@softndesign.org>
Mon, 29 Jul 2024 19:12:36 +0000 (21:12 +0200)
committerLaurent Mazet <mazet@softndesign.org>
Mon, 29 Jul 2024 19:12:36 +0000 (21:12 +0200)
tetris.c

index bb610fc531df91a10782b618d3acc8946fea3492..dcf56df9f36187c1b83a8ba64f25843b3d6f2b64 100644 (file)
--- a/tetris.c
+++ b/tetris.c
@@ -55,8 +55,9 @@ int usage (int ret)
 {
     FILE *fd = ret ? stderr : stdout;
     fprintf (fd, "usage: %s [-c] [-f file] [-h] [-s int] [-v int] [-w int]\n", progname);
-    fprintf (fd, " -c: time penalty (%s)", (chrono) ? "yes" : "no" );
+    fprintf (fd, " -c: time penalty (%s)\n", (chrono) ? "yes" : "no" );
     fprintf (fd, " -f: file name (%s)\n", (filename) ? filename : "none");
+    fprintf (fd, " -h: help message\n");
     fprintf (fd, " -s: scale [0..3] (%d)\n", scale);
     fprintf (fd, " -v: verbose level (%d)\n", verbose);
     fprintf (fd, " -w: board width  [%d, %d] (%d)\n", minwidth, maxwidth, width);