changeset 329:14a91c998d96

Adjust help output cosmetics.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 12 Jan 2020 20:26:45 +0200
parents 04ed43ef97e7
children c8f52ea74803
files sidinfo.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/sidinfo.c	Sun Jan 12 18:20:10 2020 +0200
+++ b/sidinfo.c	Sun Jan 12 20:26:45 2020 +0200
@@ -144,7 +144,8 @@
     int index, len;
 
     th_print_banner(stdout, th_prog_name, "[options] <sid file|path> [file|path #2 ..]");
-    th_args_help(stdout, optList, optListN, 0);
+    th_args_help(stdout, optList, optListN, 0, 80 - 2);
+
     printf(
         "\n"
         "Available fields:\n");
@@ -152,8 +153,8 @@
     for (len = index = 0; index < noptPSOptions; index++)
     {
         const PSFOption *opt = &optPSOptions[index];
-        len += strlen(opt->name) + 3;
-        if (len >= 72)
+        len += strlen(opt->name) + 2;
+        if (len >= 80 - 2)
         {
             printf("\n");
             len = 0;