complete -c for -n 'test (count (commandline -xpc)) -eq 1' -s h -l help -d 'Display help and exit' complete -c for -n 'test (count (commandline -xpc)) -eq 1' -f complete -c for -n 'test (count (commandline -xpc)) -eq 2' -xa in