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>
This commit is contained in:
Sebastiaan van Stijn 2016-12-16 15:10:20 +01:00
Родитель e435665658
Коммит f89eee5d9d
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 76698F39D527CE8C
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -19,7 +19,7 @@ func newLeaveCommand(dockerCli *command.DockerCli) *cobra.Command {
cmd := &cobra.Command{ cmd := &cobra.Command{
Use: "leave [OPTIONS]", Use: "leave [OPTIONS]",
Short: "Leave the swarm (workers only)", Short: "Leave the swarm",
Args: cli.NoArgs, Args: cli.NoArgs,
RunE: func(cmd *cobra.Command, args []string) error { RunE: func(cmd *cobra.Command, args []string) error {
return runLeave(dockerCli, opts) return runLeave(dockerCli, opts)

Просмотреть файл

@ -18,7 +18,7 @@ keywords: "swarm, leave"
```markdown ```markdown
Usage: docker swarm leave [OPTIONS] Usage: docker swarm leave [OPTIONS]
Leave the swarm (workers only) Leave the swarm
Options: Options:
-f, --force Force this node to leave the swarm, ignoring warnings -f, --force Force this node to leave the swarm, ignoring warnings