Skip to content

Commit

Permalink
Wrap long usage message
Browse files Browse the repository at this point in the history
Turns out Cobra doesn't wrap usage messages, so they look pretty ugly if
we don't pick a pretty conservative width and wrap by hand.
  • Loading branch information
annettejanewilson committed Jun 4, 2024
1 parent b95e18b commit 8875ffa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/foreach/foreach.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ func NewForeachCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "foreach [--repos REPOFILE] -- COMMAND [ARGUMENT...]",
Short: "Run COMMAND against each working copy",
Long: "Run COMMAND against each working copy. " +
"Make sure to include a double hyphen -- with space on " +
"both sides before COMMAND, as this marks that no " +
"further options should be interpreted by turbolift.",
Long:
`Run COMMAND against each working copy. Make sure to include a
double hyphen -- with space on both sides before COMMAND, as this
marks that no further options should be interpreted by turbolift.`,
RunE: runE,
Args: cobra.MinimumNArgs(1),
}
Expand Down

0 comments on commit 8875ffa

Please sign in to comment.