Skip to content

Commit

Permalink
Merge pull request #62 from shmel1k/bugfix/fix_forgotten_bracket
Browse files Browse the repository at this point in the history
[misc] fix subcommand forgotten bracket in help
  • Loading branch information
shmel1k authored Jan 24, 2025
2 parents a466000 + e04e31b commit d57874c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .changes/unreleased/Fixed-20250124-142119.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
kind: Fixed
body: Returned forgotten bracket in <subcommand> help message
time: 2025-01-24T14:21:19.299618172Z
2 changes: 1 addition & 1 deletion internal/cli/cobra.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func DeterminePadding(curCommand, subCommandLineNumber, totalCommands int) strin
func GenerateUsage(cmd *cobra.Command) string {
boldUsage := color.New(color.Bold).Sprint("Usage:")
if cmd == cmd.Root() {
return fmt.Sprintf("%s ydbops [global options...] <subcommand", boldUsage)
return fmt.Sprintf("%s ydbops [global options...] <subcommand>", boldUsage)
}

cmdChain := cmd.Name()
Expand Down

0 comments on commit d57874c

Please sign in to comment.