Skip to content

Commit

Permalink
Fix Help
Browse files Browse the repository at this point in the history
  • Loading branch information
lemon-mint committed Aug 20, 2022
1 parent ef14802 commit bbacb13
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions broccoli.go
Original file line number Diff line number Diff line change
Expand Up @@ -446,22 +446,25 @@ func BindOSArgs(dst interface{}) []string {

// Write Command and Version
sb.WriteString(app.c.Command)
if a.c.Version != nil {
if app.c.Version != nil {
sb.WriteRune(' ')
sb.WriteString(*app.c.Version)
}
sb.WriteRune('\n')

// Write Author
if a.c.Author != nil {
if app.c.Author != nil {
sb.WriteString(*app.c.Author)
sb.WriteRune('\n')
}

// Write LongAbout
if a.c.LongAbout != nil {
if app.c.LongAbout != nil {
sb.WriteString(*app.c.LongAbout)
sb.WriteRune('\n')
} else if app.c.About != nil {
sb.WriteString(*app.c.About)
sb.WriteRune('\n')
}

// Write Usage
Expand Down

0 comments on commit bbacb13

Please sign in to comment.