fusermount: Use _parse_help, add basic test case.

master
Ville Skyttä 2011-05-04 23:56:38 +03:00
parent 20a3d4d0bd
commit db86b76eba
3 changed files with 22 additions and 1 deletions

View File

@ -20,7 +20,7 @@ _fusermount()
esac
if [[ "$cur" == -* ]] ; then
COMPREPLY=( $( compgen -W '-h -V -o -u -q -z' -- "$cur" ) )
COMPREPLY=( $( compgen -W '$( _parse_help "$1" -h )' -- "$cur" ) )
else
_filedir -d
fi

View File

@ -0,0 +1 @@
assert_source_completions fusermount

View File

@ -0,0 +1,20 @@
proc setup {} {
save_env
}
proc teardown {} {
assert_env_unmodified
}
setup
assert_complete_any "fusermount "
sync_after_int
teardown