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

Merge pull request #23676 from avsm/swarm-cli-consistency

`docker swarm`: more consistent CLI help
This commit is contained in:
Tibor Vass 2016-06-17 10:55:15 -07:00 committed by GitHub
commit 2bd34b858d
4 changed files with 4 additions and 4 deletions

View file

@ -28,7 +28,7 @@ func newInitCommand(dockerCli *client.DockerCli) *cobra.Command {
cmd := &cobra.Command{
Use: "init",
Short: "Initialize a Swarm.",
Short: "Initialize a Swarm",
Args: cli.NoArgs,
RunE: func(cmd *cobra.Command, args []string) error {
return runInit(dockerCli, flags, opts)

View file

@ -25,7 +25,7 @@ func newJoinCommand(dockerCli *client.DockerCli) *cobra.Command {
cmd := &cobra.Command{
Use: "join [OPTIONS] HOST:PORT",
Short: "Join a Swarm as a node and/or manager.",
Short: "Join a Swarm as a node and/or manager",
Args: cli.ExactArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
opts.remote = args[0]

View file

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

View file

@ -27,7 +27,7 @@ func newUpdateCommand(dockerCli *client.DockerCli) *cobra.Command {
cmd := &cobra.Command{
Use: "update",
Short: "update the Swarm.",
Short: "Update the Swarm",
Args: cli.NoArgs,
RunE: func(cmd *cobra.Command, args []string) error {
return runUpdate(dockerCli, flags, opts)