You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
err=cli.ShowCommandHelp(ctx, lineage[targetCmdIdx+1] /* parent cmd */, lineage[targetCmdIdx].Name/* sub cmd */)
34
34
} else {
35
35
err=cli.ShowAppHelp(c)
36
36
}
@@ -119,14 +119,12 @@ type AppVersion struct {
119
119
}
120
120
121
121
funcNewMainApp(appVerAppVersion) *cli.Command {
122
-
app:=&cli.Command{
123
-
Name: "Gitea",
124
-
// HelpName: "gitea",
125
-
Usage: "A painless self-hosted Git service",
126
-
Description: `Gitea program contains "web" and other subcommands. If no subcommand is given, it starts the web server by default. Use "web" subcommand for more web server arguments, use other subcommands for other purposes.`,
127
-
Version: appVer.Version+appVer.Extra,
128
-
EnableShellCompletion: true,
129
-
}
122
+
app:=&cli.Command{}
123
+
app.Name="gitea"// must be lower-cased because it appears in the "USAGE" section like "gitea doctor [command [command options]]"
124
+
app.Usage="A painless self-hosted Git service"
125
+
app.Description=`Gitea program contains "web" and other subcommands. If no subcommand is given, it starts the web server by default. Use "web" subcommand for more web server arguments, use other subcommands for other purposes.`
0 commit comments