diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/zsh.pl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/zsh.pl b/scripts/zsh.pl index f0d8c195f..82b4d9fa2 100755 --- a/scripts/zsh.pl +++ b/scripts/zsh.pl @@ -54,10 +54,11 @@ sub parse_main_opts { $option .= '}' if defined $short; $option .= '\'[' . trim($desc) . ']\'' if defined $desc; - $option .= ":$arg" if defined $arg; + $option .= ":'$arg'" if defined $arg; $option .= ':_files' - if defined $arg and ($arg eq 'FILE' || $arg eq 'DIR'); + if defined $arg and ($arg eq '<file>' || $arg eq '<filename>' + || $arg eq '<dir>'); push @list, $option; } |