Skip to content

Commit bf7265c

Browse files
committed
reorder flags
work-path first, then config, then custom path
1 parent 7fd5332 commit bf7265c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

cmd/main.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,10 @@ func NewMainApp(appVer AppVersion) *cli.Command {
8686
app.EnableShellCompletion = true
8787
app.Flags = []cli.Flag{
8888
&cli.StringFlag{
89-
Name: "custom-path",
90-
Aliases: []string{"C"},
89+
Name: "work-path",
90+
Aliases: []string{"w"},
9191
TakesFile: true,
92-
Usage: "Set custom path (defaults to '{WorkPath}/custom')",
92+
Usage: "Set Gitea's working path (defaults to the Gitea's binary directory)",
9393
},
9494
&cli.StringFlag{
9595
Name: "config",
@@ -99,10 +99,10 @@ func NewMainApp(appVer AppVersion) *cli.Command {
9999
Usage: "Set custom config file (defaults to '{WorkPath}/custom/conf/app.ini')",
100100
},
101101
&cli.StringFlag{
102-
Name: "work-path",
103-
Aliases: []string{"w"},
102+
Name: "custom-path",
103+
Aliases: []string{"C"},
104104
TakesFile: true,
105-
Usage: "Set Gitea's working path (defaults to the Gitea's binary directory)",
105+
Usage: "Set custom path (defaults to '{WorkPath}/custom')",
106106
},
107107
}
108108
// these sub-commands need to use config file

0 commit comments

Comments
 (0)