Skip to contentSkip to conversation

alsa-utils: axfer: use second argument for transmission direction

DISCUSSION GitHub pull_request - opened 1 participant 1 message Dec 3, 2018 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

alsa-project/alsa-utils pull request #4 was opened from takaswie:

This patchset is for axfer command in alsa-utils to use second argument for transmission direction. As a result, syntax of its command line is

axfer subcommand direction options

For example:

$ axfer transfer playback [options]
$ axfer list capture [options]

This fashion requires more typing to users, however in my taste this looks good because it's easier to understand than long/short options.

Additionally, this patchset applies refactoring to list subcommand.

Takashi Sakamoto (5):
axfer: apply refactoring to list subcommand for backward compatibility

    to aplay(1)
  axfer: apply refactoring in list subcommand for new command system
  axfer: use second argument in command line for transmission direction
  axfer: use transfer subcommand as a default for compatibility mode to
    aplay(1)

axfer: truncate parsed arguments before operating subcommand

```
 axfer/main.c            | 100 +++++++++++++++++++++++++++++-----------
 axfer/subcmd-list.c     |  85 +++++++++++++++++++++++-----------
 axfer/subcmd-transfer.c |   7 ---
 3 files changed, 133 insertions(+), 59 deletions(-)
```

Request URL : https://github.com/alsa-project/alsa-utils/pull/4
Patch URL : https://github.com/alsa-project/alsa-utils/pull/4.patch
Repository URL: https://github.com/alsa-project/alsa-utils