Skip to content

Commit

Permalink
Print examples field in the generic help command.
Browse files Browse the repository at this point in the history
  • Loading branch information
Juan Tirado committed Apr 5, 2023
1 parent 4909975 commit 5387481
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ func (i *Info) HelpWithSuperFlags(superF *gnuflag.FlagSet, f *gnuflag.FlagSet) [
fmt.Fprintf(buf, "\nAliases: %s\n", strings.Join(i.Aliases, ", "))
}
if len(i.Examples) > 0 {
fmt.Fprintf(buf, "\nExamples:\n%s\n", i.Examples)
fmt.Fprintf(buf, "\nExamples:\n%s", i.Examples)
}

return buf.Bytes()
Expand Down

0 comments on commit 5387481

Please sign in to comment.