fusermount: Use _parse_help, add basic test case.
parent
20a3d4d0bd
commit
db86b76eba
|
@ -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
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
assert_source_completions fusermount
|
|
@ -0,0 +1,20 @@
|
|||
proc setup {} {
|
||||
save_env
|
||||
}
|
||||
|
||||
|
||||
proc teardown {} {
|
||||
assert_env_unmodified
|
||||
}
|
||||
|
||||
|
||||
setup
|
||||
|
||||
|
||||
assert_complete_any "fusermount "
|
||||
|
||||
|
||||
sync_after_int
|
||||
|
||||
|
||||
teardown
|
Loading…
Reference in New Issue