Skip to content

Commit

Permalink
submit: Use enum for --nav-comment flag
Browse files Browse the repository at this point in the history
This will play better with shell completion.
  • Loading branch information
abhinav committed Aug 9, 2024
1 parent 475c335 commit 81614e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion branch_submit.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ type submitOptions struct {
Draft *bool `negatable:"" help:"Whether to mark change requests as drafts"`
NoPublish bool `name:"no-publish" help:"Push branches but don't create change requests"`

NavigationComment navigationCommentWhen `name:"nav-comment" config:"submit.navigationComment" placeholder:"true" help:"Whether to add a navigation comment to the change request. Must be one of: true, false, multiple."`
NavigationComment navigationCommentWhen `name:"nav-comment" config:"submit.navigationComment" enum:"true,false,multiple" default:"true" help:"Whether to add a navigation comment to the change request. Must be one of: true, false, multiple."`

Force bool `help:"Force push, bypassing safety checks"`

Expand Down

0 comments on commit 81614e3

Please sign in to comment.