From c1e0b19f9faee80d304f128dee35386b8250561a Mon Sep 17 00:00:00 2001 From: Xiang Li Date: Mon, 10 Aug 2015 09:53:17 -0700 Subject: [PATCH] *: better flag --- Documentation/configuration.md | 6 ++++++ etcdmain/config.go | 2 +- etcdmain/help.go | 6 ++++++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/Documentation/configuration.md b/Documentation/configuration.md index d785079eb..6ce7fa46f 100644 --- a/Documentation/configuration.md +++ b/Documentation/configuration.md @@ -193,6 +193,12 @@ Follow the instructions when using these flags. + Force to create a new one-member cluster. It commits configuration changes in force to remove all existing members in the cluster and add itself. It needs to be set to [restore a backup][restore]. + default: false +### Experimental Flags + +##### -experimental-v3demo ++ Enable experimental v3 demo API ++ default: false + ### Miscellaneous Flags ##### -version diff --git a/etcdmain/config.go b/etcdmain/config.go index 30d3c15f5..55ebdb163 100644 --- a/etcdmain/config.go +++ b/etcdmain/config.go @@ -211,7 +211,7 @@ func NewConfig() *config { fs.BoolVar(&cfg.printVersion, "version", false, "Print the version and exit") // demo flag - fs.BoolVar(&cfg.v3demo, "v3demo", false, "Enable v3 demo") + fs.BoolVar(&cfg.v3demo, "experimental-v3demo", false, "Enable experimental v3 demo API") // backwards-compatibility with v0.4.6 fs.Var(&flags.IPAddressPort{}, "addr", "DEPRECATED: Use -advertise-client-urls instead.") diff --git a/etcdmain/help.go b/etcdmain/help.go index 404160509..987fe22fd 100644 --- a/etcdmain/help.go +++ b/etcdmain/help.go @@ -121,5 +121,11 @@ given by the consensus protocol. --force-new-cluster 'false' force to create a new one-member cluster. + + +experimental flags: + + --experimental-v3demo 'false' + enable experimental v3 demo API ` )