alecthomas / kingpin

CONTRIBUTIONS ONLY: A Go (golang) command line and flag parser
MIT License
3.5k stars 272 forks source link

Remove newline before #compdef #309

Closed alindeman closed 4 years ago

alindeman commented 4 years ago

zsh's compinit only considers files where the absolute first line starts with #compdef or #autoload 1. Kingpin was generating completion files with a leading newline, causing this logic to skip the file.

alecthomas commented 4 years ago

Thanks!