summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2010-01-18 19:09:02 +0200
committerVille Skyttä <ville.skytta@iki.fi>2010-01-18 19:09:02 +0200
commit43681ffac6c73d043a2fa981f9c255040e801775 (patch)
tree88d2df263b5e8db0ec907df46f193ba68fa9e8ee
parentdf1a02baa50269ab1e2ced2ab14fe00752f4d9d4 (diff)
downloadbash-completion-43681ffac6c73d043a2fa981f9c255040e801775.tar.gz
Make _parse_help() look at stderr too.
-rw-r--r--bash_completion2
1 files changed, 1 insertions, 1 deletions
diff --git a/bash_completion b/bash_completion
index 6a864845..028da881 100644
--- a/bash_completion
+++ b/bash_completion
@@ -528,7 +528,7 @@ _split_longopt()
_parse_help() {
local cmd
cmd=$1
- $cmd --help | command grep -- "^[[:space:]]*-" | tr "," " " | \
+ $cmd --help 2>&1 | command grep -- "^[[:space:]]*-" | tr "," " " | \
awk '{print $1; if ($2 ~ /-.*/) { print $2 } }' | sed -e "s:=.*::g"
}