Skip to content

Commit c1a866c

Browse files
authored
Fixes issues (#34)
1 parent 973c80b commit c1a866c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cobra2snooty.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ func GenDocs(cmd *cobra.Command, w io.Writer) error {
102102
buf.WriteString("\n" + long + "\n")
103103
}
104104

105+
buf.WriteString("\n")
106+
105107
if cmd.Runnable() {
106108
buf.WriteString(syntaxHeader)
107109
buf.WriteString(fmt.Sprintf("\n %s\n\n", strings.ReplaceAll(cmd.UseLine(), "[flags]", "[options]")))
@@ -113,7 +115,6 @@ func GenDocs(cmd *cobra.Command, w io.Writer) error {
113115
printOptions(buf, cmd)
114116

115117
printOutputCreate(buf, cmd)
116-
buf.WriteString("\n")
117118

118119
if cmd.Example != "" {
119120
printExamples(buf, cmd)

0 commit comments

Comments
 (0)