*: better flag

release-2.2
Xiang Li 2015-08-10 09:53:17 -07:00
parent 9ff7075ce8
commit c1e0b19f9f
3 changed files with 13 additions and 1 deletions

View File

@ -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

View File

@ -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.")

View File

@ -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
`
)