Merge pull request #1707 from cli/fix-zsh-autocomplete

Remove square brackets from persistent flag description to fix zsh autocomplete
This commit is contained in:
Mislav Marohnić 2020-09-16 15:53:41 +02:00 committed by GitHub
commit 5a2c7e7957
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,7 +8,7 @@ import (
)
func EnableRepoOverride(cmd *cobra.Command, f *Factory) {
cmd.PersistentFlags().StringP("repo", "R", "", "Select another repository using the `[HOST/]OWNER/REPO` format")
cmd.PersistentFlags().StringP("repo", "R", "", "Select another repository using the `OWNER/REPO` format")
cmd.PersistentPreRun = func(cmd *cobra.Command, args []string) {
repoOverride, _ := cmd.Flags().GetString("repo")