summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-05-28 16:22:24 +0200
committerHarald Welte <laforge@gnumonks.org>2017-05-28 16:22:43 +0200
commit076d41aa794da9f07da85174ff728c27ad66ae7b (patch)
treecd1345deafacfebf8c4b601b8f219f62ddf0d1a2
parent848db7b6622261c105495efb3f3cc7e9ab78551a (diff)
print_help(): Fix formatting of help text
-rw-r--r--src/main.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/main.c b/src/main.c
index 60a3bab..58e23c1 100644
--- a/src/main.c
+++ b/src/main.c
@@ -111,7 +111,7 @@ print_help(char *progname)
for (i=CODEC_INVALID+1; i<_CODEC_MAX; i++) {
const struct codec_desc *codec = codec_get_from_type(i);
- fprintf(stdout, " %s\t %c %c %c\t%s\n",
+ fprintf(stdout, " %4s %c %c %c \t%s\n",
codec->name,
'*',
codec->codec_encode ? '*' : ' ',
@@ -127,10 +127,8 @@ print_help(char *progname)
for (i=FMT_INVALID+1; i<_FMT_MAX; i++) {
const struct format_desc *fmt = fmt_get_from_type(i);
- fprintf(stdout, " %s%s%s\t%s\n",
+ fprintf(stdout, " %-19s %s\n",
fmt->name,
- strlen(fmt->name) < 7 ? "\t" : "",
- strlen(fmt->name) < 15 ? "\t" : "",
fmt->description
);
}