postfix etc: Use _parse_usage.

This commit is contained in:
Ville Skyttä 2011-05-15 15:16:24 +03:00
parent 4e070e40a4
commit 78b9e0569e

View File

@ -21,7 +21,7 @@ _postfix()
esac
if [[ $cur == -* ]]; then
COMPREPLY=( $( compgen -W '-c -D -v' -- "$cur" ) )
COMPREPLY=( $( compgen -W '$( _parse_usage "$1" )' -- "$cur" ) )
return 0
fi
@ -48,8 +48,7 @@ _postmap()
esac
if [[ $cur == -* ]]; then
COMPREPLY=( $( compgen -W '-N -f -i -n -o -p -r -v -w -c -d -q' \
-- "$cur" ) )
COMPREPLY=( $( compgen -W '$( _parse_usage "$1" )' -- "$cur" ) )
return 0
fi
@ -88,7 +87,7 @@ _postcat()
esac
if [[ $cur == -* ]]; then
COMPREPLY=( $( compgen -W '-c -q -v' -- "$cur" ) )
COMPREPLY=( $( compgen -W '$( _parse_usage "$1" )' -- "$cur" ) )
return 0
fi
@ -139,8 +138,7 @@ _postconf()
esac
if [[ $cur == -* ]]; then
COMPREPLY=( $( compgen -W '-A -a -b -c -d -e -h -m -l -n -t -v' \
-- "$cur" ) )
COMPREPLY=( $( compgen -W '$( _parse_usage "$1" )' -- "$cur" ) )
return 0
fi
@ -208,7 +206,7 @@ _postsuper()
esac
if [[ $cur == -* ]]; then
COMPREPLY=( $( compgen -W '-c -d -h -H -p -r -s -v' -- "$cur" ) )
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
return 0
fi