We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c98149 commit fc5109dCopy full SHA for fc5109d
run.go
@@ -75,6 +75,7 @@ func Run(ctx context.Context, cliargs []string) error {
75
c.SetVersionTemplate("{{ .Name }} {{ .Version }}\n")
76
c.SetArgs(cliargs[1:])
77
c.SilenceErrors = true
78
+ c.SetUsageTemplate(text.UsageTemplate)
79
80
flags := c.Flags()
81
flags.SortFlags = false
text/text.go
@@ -93,6 +93,14 @@ var (
93
NotificationReceived = `Asynchronous notification %q %sreceived from server process with PID %d.`
94
NotificationPayload = `with payload %q `
95
UnknownShortAlias = `(unk)`
96
+ UsageTemplate = `Usage: {{.UseLine}}
97
+
98
+Args:
99
+ DSN database url
100
101
+Flags:
102
+{{.LocalFlags.FlagUsages | trimTrailingWhitespaces}}
103
+`
104
)
105
106
func init() {
0 commit comments