Skip to content

Commit

Permalink
feat: print help/version information to stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
axetroy committed Nov 27, 2020
1 parent d9d3be8 commit ddc712a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/whatchanged/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var (
)

func printHelp() {
fmt.Println(`whatchanged - a cli to generate changelog from git project
println(`whatchanged - a cli to generate changelog from git project
USAGE:
whatchanged [OPTIONS] [version]
Expand Down Expand Up @@ -132,7 +132,7 @@ func run() error {
}

if showVersion {
fmt.Printf("%s %s %s\n", version, commit, date)
println(fmt.Sprintf("%s %s %s", version, commit, date))
os.Exit(0)
}

Expand Down

0 comments on commit ddc712a

Please sign in to comment.