-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path_mpdinfo
More file actions
18 lines (15 loc) · 718 Bytes
/
Copy path_mpdinfo
File metadata and controls
18 lines (15 loc) · 718 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#compdef mpdinfo
local curcontext="$curcontext" state line
typeset -A opt_args
_arguments -C \
{-c,--config}'[Spezifies a config file]:file:_files' \
{-f,--format}'[formats the output string for all]:format (string)' \
{-fs,--format-stop}'[formats the output string for status stopped]:format (string)' \
{-fpa,--format-pause}'[formats the output string for status paused]:format (string)' \
{-fpl,--format-play}'[Formats the output for status playing]:format (string)' \
{-hp,--help}'[Displays help]' \
{-h,--host}'[Set the hostname]:host (string)' \
{-p,--port}'[Set the port]:port (int)' \
{-v,--verbosity}'[Set verbosity level between 0 (Error) and 5 (Debug)]:verbosity (int)' \
&& return 0
return 1