Skip to content

Commit 338a1cf

Browse files
committed
Capitalize short desc for completion command
1 parent de187e8 commit 338a1cf

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

completions.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ func (c *Command) initDefaultCompletionCmd() {
589589

590590
completionCmd := &Command{
591591
Use: compCmdName,
592-
Short: "generate the autocompletion script for the specified shell",
592+
Short: "Generate the autocompletion script for the specified shell",
593593
Long: fmt.Sprintf(`
594594
Generate the autocompletion script for %[1]s for the specified shell.
595595
See each sub-command's help for details on how to use the generated script.
@@ -601,7 +601,7 @@ See each sub-command's help for details on how to use the generated script.
601601

602602
out := c.OutOrStdout()
603603
noDesc := c.CompletionOptions.DisableDescriptions
604-
shortDesc := "generate the autocompletion script for %s"
604+
shortDesc := "Generate the autocompletion script for %s"
605605
bash := &Command{
606606
Use: "bash",
607607
Short: fmt.Sprintf(shortDesc, "bash"),

completions_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ func TestCmdNameCompletionInGo(t *testing.T) {
125125

126126
expected = strings.Join([]string{
127127
"aliased\tA command with aliases",
128-
"completion\tgenerate the autocompletion script for the specified shell",
128+
"completion\tGenerate the autocompletion script for the specified shell",
129129
"firstChild\tFirst command",
130130
"help\tHelp about any command",
131131
"secondChild",
@@ -580,7 +580,7 @@ func TestFlagNameCompletionInGoWithDesc(t *testing.T) {
580580

581581
expected := strings.Join([]string{
582582
"childCmd\tfirst command",
583-
"completion\tgenerate the autocompletion script for the specified shell",
583+
"completion\tGenerate the autocompletion script for the specified shell",
584584
"help\tHelp about any command",
585585
":4",
586586
"Completion ended with directive: ShellCompDirectiveNoFileComp", ""}, "\n")

0 commit comments

Comments
 (0)