Browse Source

*: better flag

Xiang Li 10 years ago
parent
commit
c1e0b19f9f
3 changed files with 13 additions and 1 deletions
  1. 6 0
      Documentation/configuration.md
  2. 1 1
      etcdmain/config.go
  3. 6 0
      etcdmain/help.go

+ 6 - 0
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

+ 1 - 1
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.")

+ 6 - 0
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
 `
 )