We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfce70c commit d2d4535Copy full SHA for d2d4535
pkg/cli/usage.go
@@ -35,6 +35,7 @@ var hiddenCommands = []string{
35
func DefaultUsageFunc(c *ffcli.Command) string {
36
var b strings.Builder
37
38
+ fmt.Fprintf(&b, "continuous profiling platform\n\n")
39
headerClr.Fprintf(&b, "USAGE\n")
40
if c.ShortUsage != "" {
41
fmt.Fprintf(&b, " %s\n", c.ShortUsage)
@@ -85,6 +86,10 @@ func DefaultUsageFunc(c *ffcli.Command) string {
85
86
// fmt.Fprintf(&b, "\n")
87
}
88
89
+ if len(c.Subcommands) > 0 {
90
+ b.WriteString("Run 'pyroscope SUBCOMMAND --help' for more information on a subcommand.\n")
91
+ }
92
+
93
return strings.ReplaceAll(b.String(), "@new-line@", "\n")
94
95
0 commit comments