projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
042767c
)
afh/play: Include supported audio formats in help output.
author
Andre Noll
<maan@systemlinux.org>
Sun, 7 Apr 2013 00:24:13 +0000
(
00:24
+0000)
committer
Andre 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
patch
|
blob
|
history
play.c
patch
|
blob
|
history
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);
}