Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ var rootCmd = &cobra.Command{
Use: "gh-stack",
Short: "Manage stacked pull requests",
Long: `gh-stack tracks parent-child relationships between branches, enabling workflows where PRs target other PRs.`,
// SilenceUsage prevents Cobra from printing the help/usage text when a
// command's RunE returns an error. Without this, any runtime error
// (e.g. a rebase conflict) causes the full usage output to be shown,
// which is confusing and unhelpful.
SilenceUsage: true,
}

// Execute runs the root command.
Expand Down