changeset 13566:2cfb32a737aa

make af_help conform better to the the afm/vfm/etc equivalents
author alex
date Tue, 05 Oct 2004 19:36:47 +0000
parents d8808729d3fd
children 8f75b26e847c
files libaf/af.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libaf/af.c	Tue Oct 05 19:18:22 2004 +0000
+++ b/libaf/af.c	Tue Oct 05 19:36:47 2004 +0000
@@ -616,8 +616,12 @@
 
 void af_help (void) {
   int i = 0;
+  af_msg(AF_MSG_INFO, "Available audio filters:\n");
   while (filter_list[i]) {
-    af_msg(AF_MSG_INFO, "  %-15s: %s\n", filter_list[i]->name, filter_list[i]->info);
+    if (filter_list[i]->comment && filter_list[i]->comment[0])
+      af_msg(AF_MSG_INFO, "  %-15s: %s (%s)\n", filter_list[i]->name, filter_list[i]->info, filter_list[i]->comment);
+    else
+      af_msg(AF_MSG_INFO, "  %-15s: %s\n", filter_list[i]->name, filter_list[i]->info);
     i++;
   }
 }