mirror of
https://github.com/docker/cli.git
synced 2026-10-17 19:31:32 -04:00
add short flag for force
Signed-off-by: allencloud <allen.sun@daocloud.io> Upstream-commit: 955c35b6a62f26e7ca36fa6378110ce7af8916a4 Component: engine
This commit is contained in:
@@ -29,7 +29,7 @@ func newRemoveCommand(dockerCli *command.DockerCli) *cobra.Command {
|
||||
},
|
||||
}
|
||||
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
|
||||
}
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ func newLeaveCommand(dockerCli *command.DockerCli) *cobra.Command {
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user