Skip to content

Commit

Permalink
makes pyroscope exec help print usage message
Browse files Browse the repository at this point in the history
  • Loading branch information
petethepig committed Feb 7, 2021
1 parent 0dc230a commit dfce70c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ func Start(cfg *config.Config) error {
} else if l, err := logrus.ParseLevel(cfg.Exec.LogLevel); err == nil {
logrus.SetLevel(l)
}
if len(args) == 0 {
if len(args) == 0 || args[0] == "help" {
fmt.Println(gradientBanner())
fmt.Println(DefaultUsageFunc(execCmd))
return nil
Expand Down

0 comments on commit dfce70c

Please sign in to comment.