From 5dbc9ac5ce13e1d2872058f3440de253e4416dfe Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sun, 7 Apr 2013 00:24:13 +0000 Subject: [PATCH 1/1] afh/play: Include supported audio formats in help output. This is useful information, and it is simple to do, so include it in the help. --- afh.c | 1 + play.c | 1 + 2 files changed, 2 insertions(+) diff --git a/afh.c b/afh.c index 9ab694cf..3881955d 100644 --- 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 35b25119..e6a58fce 100644 --- 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); } -- 2.39.2