summaryrefslogtreecommitdiffstats
path: root/cmd/update.go
diff options
context:
space:
mode:
authorMatthias Loibl <mail@matthiasloibl.com>2016-11-09 23:18:22 +0100
committerMatthias Loibl <mail@matthiasloibl.com>2016-11-09 23:18:22 +0100
commit5cd093aa467ada0017f9056163346f419c0fa546 (patch)
treeb8055aad9a6554b6f71fcbd9909fd3bb668b0e2c /cmd/update.go
parent475ddd8d8922b829a39189de7db4b6257938d81c (diff)
downloadgitea-5cd093aa467ada0017f9056163346f419c0fa546.tar.gz
gitea-5cd093aa467ada0017f9056163346f419c0fa546.zip
Use cli Flags directly and not some helper funcs
Signed-off-by: Matthias Loibl <mail@matthiasloibl.com>
Diffstat (limited to 'cmd/update.go')
-rw-r--r--cmd/update.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/cmd/update.go b/cmd/update.go
index ef494121e9..4a5617cd4f 100644
--- a/cmd/update.go
+++ b/cmd/update.go
@@ -21,7 +21,11 @@ var CmdUpdate = cli.Command{
Description: `Update get pushed info and insert into database`,
Action: runUpdate,
Flags: []cli.Flag{
- stringFlag("config, c", "custom/conf/app.ini", "Custom configuration file path"),
+ cli.StringFlag{
+ Name: "config, c",
+ Value: "custom/conf/app.ini",
+ Usage: "Custom configuration file path",
+ },
},
}