# HG changeset patch # User Matti Hamalainen # Date 1578853605 -7200 # Node ID 14a91c998d96fe1f958a28e345859924e0ddb791 # Parent 04ed43ef97e77ea7636edb44ba8ddc1044603fa3 Adjust help output cosmetics. diff -r 04ed43ef97e7 -r 14a91c998d96 sidinfo.c --- 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] [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;