diff options
Diffstat (limited to 'Completion')
-rw-r--r-- | Completion/Base/_arguments | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Completion/Base/_arguments b/Completion/Base/_arguments index e8756ea14..7c9e72c1f 100644 --- a/Completion/Base/_arguments +++ b/Completion/Base/_arguments @@ -217,6 +217,10 @@ if [[ "$*" != "$_args_cache_descr" ]]; then if [[ "$1" = *\[*\](|:*) ]]; then descr="${${1#*\[}%%\]*}" 1="${1/\[$descr\]}" + elif [[ -n "$compconfig[autodescribe_options]" && + "$1" = [-+][^:]##:[^:]#[^\\]:[^:]# ]]; then + descr="${${(M)${1#*:}#*[^\\]:}[1,-2]}" + descr="${compconfig[autodescribe_options]//\\%d/$descr}" fi # Description for both the `-foo' and `+foo' form? |