serve: set default value for --config to ./config.yml
This commit is contained in:
parent
f0e7ce4a96
commit
7bf2c106e4
|
@ -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")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue