]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
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 9ab694cf47d96c284cfe6af9b7caffcdcbf217f7..3881955d3ff14c757eef89a6330ccb95133cb09f 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 35b25119c71e10972737159439c271bf43ac90e4..e6a58fce566ee7ec7553d31d91f8386b5cef7094 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);
 }