From c75b96be49f3655554455c6a5d48fa7f6ba326b4 Mon Sep 17 00:00:00 2001 From: Takashi Sakamoto Date: Fri, 7 Dec 2018 18:41:02 +0900 Subject: [PATCH] axfer: print help text of list subcommand This commit adds help text of list subcommand. This help text can not be in execution of alias (aplay/arecord) due to program design. Signed-off-by: Takashi Sakamoto Signed-off-by: Takashi Iwai --- axfer/subcmd-list.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/axfer/subcmd-list.c b/axfer/subcmd-list.c index 1ea9669..98a7cf3 100644 --- a/axfer/subcmd-list.c +++ b/axfer/subcmd-list.c @@ -193,7 +193,14 @@ static int list_pcms(snd_pcm_stream_t direction) static void print_help(void) { - printf("help for list sub-command.\n"); + printf( +"Usage:\n" +" axfer list DIRECTION TARGET\n" +"\n" +" where:\n" +" DIRECTION = capture | playback\n" +" TARGET = device | pcm\n" + ); } // Backward compatibility to aplay(1).