1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #28196 from allencloud/add-short-flag-for-force

add short flag for force
This commit is contained in:
Vincent Demeester 2016-11-09 18:11:58 +01:00 committed by GitHub
commit fe77fc5bf1
4 changed files with 8 additions and 8 deletions

View file

@ -29,7 +29,7 @@ func newRemoveCommand(dockerCli *command.DockerCli) *cobra.Command {
}, },
} }
flags := cmd.Flags() flags := cmd.Flags()
flags.BoolVar(&opts.force, "force", false, "Force remove a node from the swarm") flags.BoolVarP(&opts.force, "force", "f", false, "Force remove a node from the swarm")
return cmd return cmd
} }

View file

@ -27,7 +27,7 @@ func newLeaveCommand(dockerCli *command.DockerCli) *cobra.Command {
} }
flags := cmd.Flags() flags := cmd.Flags()
flags.BoolVar(&opts.force, "force", false, "Force this node to leave the swarm, ignoring warnings") flags.BoolVarP(&opts.force, "force", "f", false, "Force this node to leave the swarm, ignoring warnings")
return cmd return cmd
} }

View file

@ -24,7 +24,7 @@ Aliases:
rm, remove rm, remove
Options: Options:
--force Force remove a node from the swarm -f, --force Force remove a node from the swarm
--help Print usage --help Print usage
``` ```

View file

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