Browse code

`docker swarm`: more consistent CLI help

This changes `docker swarm help` to be consistent with capitals
and removes full stops.

Before:

```
Commands:
init Initialize a Swarm.
join Join a Swarm as a node and/or manager.
update update the Swarm.
leave Leave a Swarm.
inspect Inspect the Swarm
```

After:

```
Commands:
init Initialize a Swarm
join Join a Swarm as a node and/or manager
update Update the Swarm
leave Leave a Swarm
inspect Inspect the Swarm
```

Signed-off-by: Anil Madhavapeddy <anil@docker.com>

Anil Madhavapeddy authored on 2016/06/18 00:26:47
Showing 4 changed files
... ...
@@ -28,7 +28,7 @@ func newInitCommand(dockerCli *client.DockerCli) *cobra.Command {
28 28
 
29 29
 	cmd := &cobra.Command{
30 30
 		Use:   "init",
31
-		Short: "Initialize a Swarm.",
31
+		Short: "Initialize a Swarm",
32 32
 		Args:  cli.NoArgs,
33 33
 		RunE: func(cmd *cobra.Command, args []string) error {
34 34
 			return runInit(dockerCli, flags, opts)
... ...
@@ -25,7 +25,7 @@ func newJoinCommand(dockerCli *client.DockerCli) *cobra.Command {
25 25
 
26 26
 	cmd := &cobra.Command{
27 27
 		Use:   "join [OPTIONS] HOST:PORT",
28
-		Short: "Join a Swarm as a node and/or manager.",
28
+		Short: "Join a Swarm as a node and/or manager",
29 29
 		Args:  cli.ExactArgs(1),
30 30
 		RunE: func(cmd *cobra.Command, args []string) error {
31 31
 			opts.remote = args[0]
... ...
@@ -19,7 +19,7 @@ func newLeaveCommand(dockerCli *client.DockerCli) *cobra.Command {
19 19
 
20 20
 	cmd := &cobra.Command{
21 21
 		Use:   "leave",
22
-		Short: "Leave a Swarm.",
22
+		Short: "Leave a Swarm",
23 23
 		Args:  cli.NoArgs,
24 24
 		RunE: func(cmd *cobra.Command, args []string) error {
25 25
 			return runLeave(dockerCli, opts)
... ...
@@ -27,7 +27,7 @@ func newUpdateCommand(dockerCli *client.DockerCli) *cobra.Command {
27 27
 
28 28
 	cmd := &cobra.Command{
29 29
 		Use:   "update",
30
-		Short: "update the Swarm.",
30
+		Short: "Update the Swarm",
31 31
 		Args:  cli.NoArgs,
32 32
 		RunE: func(cmd *cobra.Command, args []string) error {
33 33
 			return runUpdate(dockerCli, flags, opts)