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 a11f7b1577
2 changed files with 2 additions and 2 deletions

View File

@ -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
}

View File

@ -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
}