#compdef makekconfig.py function _makekconfig.py() { _arguments \ {-h,--help}'[print help text]' \ {-q,--quick}'[only compile the subdirectory containing the Kconfig file]' \ '1:Kconfig:_files -g "**/Kconfig"' \ '*:Make Options:_make' } _makekconfig.py "$@"