diff --git a/command.go b/command.go index b33edb0..a9638aa 100644 --- a/command.go +++ b/command.go @@ -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 { diff --git a/internal/flag/flag.go b/internal/flag/flag.go index c1c0df5..f0e8a60 100644 --- a/internal/flag/flag.go +++ b/internal/flag/flag.go @@ -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 ( diff --git a/testdata/snapshots/TestHelp/with_named_arguments.snap.txt b/testdata/snapshots/TestHelp/with_named_arguments.snap.txt index 31c9abf..54056c3 100644 --- a/testdata/snapshots/TestHelp/with_named_arguments.snap.txt +++ b/testdata/snapshots/TestHelp/with_named_arguments.snap.txt @@ -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 ""] diff --git a/testdata/snapshots/TestHelp/with_verbosity_count.snap.txt b/testdata/snapshots/TestHelp/with_verbosity_count.snap.txt index 6d69ba7..3e7807c 100644 --- a/testdata/snapshots/TestHelp/with_verbosity_count.snap.txt +++ b/testdata/snapshots/TestHelp/with_verbosity_count.snap.txt @@ -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]