Browse code

swarm leave is not only for workers

the "docker swarm leave" command description
mentioned that the command can only be used
for workers, however, the command can also
be used for managers (using the `-f` / `--force`
option).

this patch removes the "(workers only)" part
of the command description.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Sebastiaan van Stijn authored on 2016/12/16 23:10:20
Showing 2 changed files
... ...
@@ -19,7 +19,7 @@ func newLeaveCommand(dockerCli *command.DockerCli) *cobra.Command {
19 19
 
20 20
 	cmd := &cobra.Command{
21 21
 		Use:   "leave [OPTIONS]",
22
-		Short: "Leave the swarm (workers only)",
22
+		Short: "Leave the swarm",
23 23
 		Args:  cli.NoArgs,
24 24
 		RunE: func(cmd *cobra.Command, args []string) error {
25 25
 			return runLeave(dockerCli, opts)
... ...
@@ -18,7 +18,7 @@ keywords: "swarm, leave"
18 18
 ```markdown
19 19
 Usage:	docker swarm leave [OPTIONS]
20 20
 
21
-Leave the swarm (workers only)
21
+Leave the swarm
22 22
 
23 23
 Options:
24 24
   -f, --force   Force this node to leave the swarm, ignoring warnings