mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-12-23 03:46:31 +01:00
axfer: print help text of command entry
This commit adds help text of command entry. This is printed when help subcommand is given, or a valid subcommand or a valid direction are not given. Unfortunately, at present, execution of alias (aplay/arecord) with help options prints the added help text. It should print help options in transfer subcommand. This bug will fixed in future commits. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
422036f64c
commit
a4782feac3
1 changed files with 11 additions and 1 deletions
12
axfer/main.c
12
axfer/main.c
|
@ -67,7 +67,17 @@ static void print_version(const char *const cmdname)
|
||||||
|
|
||||||
static void print_help(void)
|
static void print_help(void)
|
||||||
{
|
{
|
||||||
printf("help\n");
|
printf(
|
||||||
|
"Usage:\n"
|
||||||
|
" axfer transfer DIRECTION OPTIONS\n"
|
||||||
|
" axfer list DIRECTION OPTIONS\n"
|
||||||
|
" axfer version\n"
|
||||||
|
" axfer help\n"
|
||||||
|
"\n"
|
||||||
|
" where:\n"
|
||||||
|
" DIRECTION = capture | playback\n"
|
||||||
|
" OPTIONS = -h | --help | (subcommand specific)\n"
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Backward compatibility to aplay(1).
|
// Backward compatibility to aplay(1).
|
||||||
|
|
Loading…
Reference in a new issue