diff --git a/flags.go b/flags.go index 5f4ac86be0..21e068ea00 100644 --- a/flags.go +++ b/flags.go @@ -6,7 +6,7 @@ var ( flDiscovery = cli.StringFlag{ Name: "discovery", Value: "", - Usage: "DiscoveryService to use [token://,\n\t\t\t\t etcd://,/,\n\t\t\t\t file://path/to/file,\n\t\t\t\t consul:///,\n\t\t\t\t zk://,/,\n\t\t\t\t ,]", + Usage: "discovery service to use [token://,\n\t\t\t\t etcd://,/,\n\t\t\t\t file://path/to/file,\n\t\t\t\t consul:///,\n\t\t\t\t zk://,/,\n\t\t\t\t ,]", EnvVar: "SWARM_DISCOVERY", } flAddr = cli.StringFlag{ @@ -32,32 +32,32 @@ var ( } flTls = cli.BoolFlag{ Name: "tls", - Usage: "Use TLS; implied by --tlsverify=true", + Usage: "use TLS; implied by --tlsverify=true", } flTlsCaCert = cli.StringFlag{ Name: "tlscacert", - Usage: "Trust only remotes providing a certificate signed by the CA given here", + Usage: "trust only remotes providing a certificate signed by the CA given here", } flTlsCert = cli.StringFlag{ Name: "tlscert", - Usage: "Path to TLS certificate file", + Usage: "path to TLS certificate file", } flTlsKey = cli.StringFlag{ Name: "tlskey", - Usage: "Path to TLS key file", + Usage: "path to TLS key file", } flTlsVerify = cli.BoolFlag{ Name: "tlsverify", - Usage: "Use TLS and verify the remote", + Usage: "use TLS and verify the remote", } flStrategy = cli.StringFlag{ Name: "strategy", - Usage: "PlacementStrategy to use [binpacking, random]", + Usage: "placement strategy to use [binpacking, random]", Value: "binpacking:0.05", } flFilter = cli.StringSliceFlag{ Name: "filter, f", - Usage: "Filter to use [constraint, health, port]", + Usage: "filter to use [constraint, health, port]", Value: &cli.StringSlice{"constraint", "health", "port"}, } ) diff --git a/main.go b/main.go index 5359d6e88e..5b40d44721 100644 --- a/main.go +++ b/main.go @@ -85,8 +85,9 @@ func main() { ShortName: "m", Usage: "manage a docker cluster", Flags: []cli.Flag{ + flDiscovery, flStrategy, flFilter, - flDiscovery, flHosts, flHeartBeat, + flHosts, flHeartBeat, flTls, flTlsCaCert, flTlsCert, flTlsKey, flTlsVerify, flEnableCors}, Action: manage,