afh/play: Include supported audio formats in help output.
authorAndre Noll <maan@systemlinux.org>
Sun, 7 Apr 2013 00:24:13 +0000 (00:24 +0000)
committerAndre Noll <maan@systemlinux.org>
Thu, 13 Jun 2013 16:29:03 +0000 (18:29 +0200)
This is useful information, and it is simple to do, so include it in
the help.

afh.c
play.c

diff --git a/afh.c b/afh.c
index 9ab694c..3881955 100644 (file)
--- a/afh.c
+++ b/afh.c
@@ -64,6 +64,7 @@ __noreturn static void print_help_and_die(void)
        unsigned flags = d? GPH_STANDARD_FLAGS_DETAILED : GPH_STANDARD_FLAGS;
 
        ggo_print_help(&h, flags);
+       printf("supported audio formats: %s\n", AUDIO_FORMAT_HANDLERS);
        exit(EXIT_SUCCESS);
 }
 
diff --git a/play.c b/play.c
index 35b2511..e6a58fc 100644 (file)
--- a/play.c
+++ b/play.c
@@ -144,6 +144,7 @@ __noreturn static void print_help_and_die(void)
                GPH_STANDARD_FLAGS_DETAILED : GPH_STANDARD_FLAGS;
 
        ggo_print_help(&help, flags);
+       printf("supported audio formats: %s\n", AUDIO_FORMAT_HANDLERS);
        exit(0);
 }