From e178aea5e5859bd61d8dba591320eb8e428babfa Mon Sep 17 00:00:00 2001 From: Laurent Mazet Date: Mon, 29 Jul 2024 21:12:36 +0200 Subject: [PATCH] correct help message --- tetris.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tetris.c b/tetris.c index bb610fc..dcf56df 100644 --- 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); -- 2.30.2