Small reordering

This commit is contained in:
Sam Coe 2021-06-22 11:37:56 -07:00
parent 0179651dc3
commit 665f552def
No known key found for this signature in database
GPG key ID: 8E322C20F811D086

View file

@ -85,7 +85,7 @@ func NewCmdList(f *cmdutil.Factory, runF func(*ListOptions) error) *cobra.Comman
cmd.Flags().IntVarP(&opts.LimitResults, "limit", "L", 30, "Maximum number of items to fetch")
cmd.Flags().StringVarP(&opts.State, "state", "s", "open", "Filter by state: {open|closed|merged|all}")
cmd.RegisterFlagCompletionFunc("state", func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
return []string{"open", "merged", "closed", "all"}, cobra.ShellCompDirectiveNoSpace
return []string{"open", "closed", "merged", "all"}, cobra.ShellCompDirectiveNoSpace
})
cmd.Flags().StringVarP(&opts.BaseBranch, "base", "B", "", "Filter by base branch")