diff --git a/commands/commands.go b/commands/commands.go index fc9d39bd17..1efb9daac1 100644 --- a/commands/commands.go +++ b/commands/commands.go @@ -197,6 +197,18 @@ var Commands = []cli.Command{ Usage: "Get or set the active machine", Action: cmdActive, }, + { + Name: "config", + Usage: "Print the connection config for machine", + Description: "Argument is a machine name. Will use the active machine if none is provided.", + Action: cmdConfig, + Flags: []cli.Flag{ + cli.BoolFlag{ + Name: "swarm", + Usage: "Display the Swarm config instead of the Docker daemon", + }, + }, + }, { Flags: append( drivers.GetCreateFlags(), @@ -207,15 +219,19 @@ var Commands = []cli.Command{ Action: cmdCreate, }, { - Name: "config", - Usage: "Print the connection config for machine", + Name: "env", + Usage: "Display the commands to set up the environment for the Docker client", Description: "Argument is a machine name. Will use the active machine if none is provided.", - Action: cmdConfig, + Action: cmdEnv, Flags: []cli.Flag{ cli.BoolFlag{ Name: "swarm", Usage: "Display the Swarm config instead of the Docker daemon", }, + cli.BoolFlag{ + Name: "unset, u", + Usage: "Unset variables instead of setting them", + }, }, }, { @@ -284,22 +300,6 @@ var Commands = []cli.Command{ Description: "Argument(s) are one or more machine names.", Action: cmdRm, }, - { - Name: "env", - Usage: "Display the commands to set up the environment for the Docker client", - Description: "Argument is a machine name. Will use the active machine if none is provided.", - Action: cmdEnv, - Flags: []cli.Flag{ - cli.BoolFlag{ - Name: "swarm", - Usage: "Display the Swarm config instead of the Docker daemon", - }, - cli.BoolFlag{ - Name: "unset, u", - Usage: "Unset variables instead of setting them", - }, - }, - }, { Name: "ssh", Usage: "Log into or run a command on a machine with SSH",