[alsa-devel] alsa-utils: axfer: use second argument for transmission direction

GitHub pull_request - opened github at alsa-project.org
Mon Dec 3 13:00:09 CET 2018


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


More information about the Alsa-devel mailing list