changeset 2438:0b18f597351a

Cosmetics in help.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 25 Feb 2020 09:40:23 +0200
parents f7d54ac51880
children f81b42dd600d
files tools/packed.c
diffstat 1 files changed, 9 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/tools/packed.c	Tue Feb 25 07:26:40 2020 +0200
+++ b/tools/packed.c	Tue Feb 25 09:40:23 2020 +0200
@@ -68,7 +68,11 @@
 
 void argShowHelp()
 {
-    dmPrintBanner(stdout, dmProgName, "<command> [options] <packfile> [<filename(s)>]");
+    FILE *fh = stdout;
+
+    dmPrintBanner(fh, dmProgName, "<command> [options] <packfile> [<filename(s)>]");
+
+    fprintf(fh, "\n");
 
     for (int i = 0; i < cmdListN; i++)
     {
@@ -77,14 +81,14 @@
         snprintf(tmpStr, sizeof(tmpStr), "%c / %s",
             cmd->o_short, cmd->o_long);
 
-        fprintf(stdout, "  %-15s   %s\n", tmpStr, cmd->desc);
+        fprintf(fh, "  %-15s   %s\n", tmpStr, cmd->desc);
     }
 
-    fprintf(stdout, "\n");
+    fprintf(fh, "\n");
 
-    dmArgsPrintHelp(stdout, optList, optListN, 0, 80 - 2);
+    dmArgsPrintHelp(fh, optList, optListN, 0, 80 - 2);
 
-    fprintf(stdout,
+    fprintf(fh,
         "\n"
         "Examples:\n"
         "$ %s l test.pak             -- list files in test.pak\n"