Completion error for swift package init --type

This is what happens in the fish shell. Don't know of zsh or bash.

 > ls
baz foo

###  Error: Inputed <TAB> after '--type ', expected 'library tool ...'
> swift package init --type
baz/ foo