serve: set default value for --config to ./config.yml

This commit is contained in:
Simone Gotti 2019-04-03 08:53:16 +02:00
parent f0e7ce4a96
commit 7bf2c106e4
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ var serveOpts serveOptions
func init() { func init() {
flags := cmdServe.PersistentFlags() flags := cmdServe.PersistentFlags()
flags.StringVar(&serveOpts.config, "config", "", "config file path") flags.StringVar(&serveOpts.config, "config", "./config.yml", "config file path")
flags.BoolVar(&serveOpts.embeddedEtcd, "embedded-etcd", false, "start and use an embedded etcd, only for testing purpose") flags.BoolVar(&serveOpts.embeddedEtcd, "embedded-etcd", false, "start and use an embedded etcd, only for testing purpose")
flags.StringVar(&serveOpts.embeddedEtcdDataDir, "embedded-etcd-data-dir", "/tmp/agola/etcd", "embedded etcd data dir, only for testing purpose") flags.StringVar(&serveOpts.embeddedEtcdDataDir, "embedded-etcd-data-dir", "/tmp/agola/etcd", "embedded etcd data dir, only for testing purpose")