File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -31,11 +31,10 @@ func main() {
3131 os .Exit (1 )
3232 }
3333
34- if ( * dir == "" ) {
34+ if * dir == "" {
3535 fatal ("no dir set" )
3636 }
3737
38-
3938 err := os .MkdirAll (* dir , 0755 )
4039 if err != nil {
4140 fatal (err )
@@ -48,13 +47,12 @@ func main() {
4847 }
4948 }
5049
51-
5250 if * manPage {
5351 header := & doc.GenManHeader {
5452 Title : "gh" ,
5553 Section : "1" ,
56- Source : "" , //source and manual are just put at the top of the manpage, before name
57- Manual : "" , //if source is an empty string, it's set to "Auto generated by spf13/cobra"
54+ Source : "" , //source and manual are just put at the top of the manpage, before name
55+ Manual : "" , //if source is an empty string, it's set to "Auto generated by spf13/cobra"
5856 }
5957 err = doc .GenManTree (command .RootCmd , header , * dir )
6058 if err != nil {
You can’t perform that action at this time.
0 commit comments