Show More
@@ -73,11 +73,8 b'' | |||
|
73 | 73 | done |
|
74 | 74 | |
|
75 | 75 | if [[ "$cur" == -* ]]; then |
|
76 | opts="$(hg -v help | sed -e '1,/^global options/d; /^ -/!d')" | |
|
77 | ||
|
78 | if [ -n "$cmd" ]; then | |
|
79 | opts="$opts $(hg help "$cmd" | sed -e '/^ -/!d; s/ [^-][^ ]*//')" | |
|
80 | fi | |
|
76 | # this assumes that there are no commands with spaces in the name | |
|
77 | opts=$(hg -v help $cmd | sed -e '/^ *-/!d; s/ [^- ].*//') | |
|
81 | 78 | |
|
82 | 79 | COMPREPLY=( ${COMPREPLY[@]:-} $(compgen -W "$opts" -- "$cur") ) |
|
83 | 80 | return |
General Comments 0
You need to be logged in to leave comments.
Login now