Skip to content

Commit

Permalink
fix(cli): invalid command being executed twice (grafana#42)
Browse files Browse the repository at this point in the history
Running `tk show` with no arguments would print the
help text twice.
  • Loading branch information
rfratto authored and sh0rez committed Aug 12, 2019
1 parent eab83be commit 28c6898
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/tk/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func main() {

// Run!
if err := rootCmd.Execute(); err != nil {
log.Fatalln("Ouch:", rootCmd.Execute())
log.Fatalln("Ouch:", err)
}
}

Expand Down

0 comments on commit 28c6898

Please sign in to comment.