Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion command.go
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ func writePositionalArgs(cmd *Command, s *strings.Builder) {
func writeArgumentsSection(cmd *Command, s *strings.Builder) error {
s.WriteString("\n\n")
s.WriteString(style.Title.Text("Arguments"))
s.WriteString(":\n")
s.WriteString(":\n\n")
tw := tabwriter.NewWriter(s, style.MinWidth, style.TabWidth, style.Padding, style.PadChar, style.Flags)

for _, arg := range cmd.positionalArgs {
Expand Down
2 changes: 1 addition & 1 deletion internal/flag/flag.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Package flag provides a command line flag definition and parsing library.
//
// Flag is intentionally internal so the only interraction is via the Flag option on a command.
// Flag is intentionally internal so the only interaction is via the Flag option on a command.
package flag

import (
Expand Down
1 change: 1 addition & 0 deletions testdata/snapshots/TestHelp/with_named_arguments.snap.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ A placeholder for something cool
Usage: test [OPTIONS] SRC [DEST] [OTHER]

Arguments:

src The file to copy [required]
dest Destination to copy to [default ./dest]
other Something else [default ""]
Expand Down
1 change: 1 addition & 0 deletions testdata/snapshots/TestHelp/with_verbosity_count.snap.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ A placeholder for something cool
Usage: test [OPTIONS] SRC [DEST]

Arguments:

src The file to copy [required]
dest Destination to copy to [default ./dest]

Expand Down
Loading