Skip to content

Commit

Permalink
cmd/feedback: remove flag shorthands that are conflicting with global…
Browse files Browse the repository at this point in the history
… flags (#399)

Co-authored-by: Tony Worm <[email protected]>
  • Loading branch information
verdverm and Tony Worm authored Dec 15, 2024
1 parent 3d37c83 commit 1f0e59b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .hof/shadow/cli/cmd/hof/flags/feedback.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ type FeedbackPflagpole struct {
func SetupFeedbackPflags(fset *pflag.FlagSet, fpole *FeedbackPflagpole) {
// pflags

fset.BoolVarP(&(fpole.Issue), "issue", "I", false, "create an issue (discussion is default)")
fset.StringVarP(&(fpole.Labels), "labels", "L", "feedback", "labels,comma,separated")
fset.BoolVarP(&(fpole.Issue), "issue", "", false, "create an issue (discussion is default)")
fset.StringVarP(&(fpole.Labels), "labels", "", "feedback", "labels,comma,separated")
}

var FeedbackPflags FeedbackPflagpole
Expand Down
4 changes: 2 additions & 2 deletions cmd/hof/flags/feedback.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ type FeedbackPflagpole struct {
func SetupFeedbackPflags(fset *pflag.FlagSet, fpole *FeedbackPflagpole) {
// pflags

fset.BoolVarP(&(fpole.Issue), "issue", "I", false, "create an issue (discussion is default)")
fset.StringVarP(&(fpole.Labels), "labels", "L", "feedback", "labels,comma,separated")
fset.BoolVarP(&(fpole.Issue), "issue", "", false, "create an issue (discussion is default)")
fset.StringVarP(&(fpole.Labels), "labels", "", "feedback", "labels,comma,separated")
}

var FeedbackPflags FeedbackPflagpole
Expand Down
4 changes: 2 additions & 2 deletions design/cmds/feedback.cue
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ FeedbackCommand: schema.Command & {
Pflags: [{
Name: "issue"
Long: "issue"
Short: "I"
Short: ""
Type: "bool"
Default: "false"
Help: "create an issue (discussion is default)"
}, {
Name: "labels"
Long: "labels"
Short: "L"
Short: ""
Type: "string"
Default: "\"feedback\""
Help: "labels,comma,separated"
Expand Down

0 comments on commit 1f0e59b

Please sign in to comment.