|
@@ -50,10 +50,6 @@ func main() {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
|
|
- clientCli := client.NewDockerCli(stdin, stdout, stderr, clientFlags)
|
|
|
|
- // TODO: remove once `-d` is retired
|
|
|
|
- handleGlobalDaemonFlag()
|
|
|
|
-
|
|
|
|
if *flHelp {
|
|
if *flHelp {
|
|
// if global flag --help is present, regardless of what other options and commands there are,
|
|
// if global flag --help is present, regardless of what other options and commands there are,
|
|
// just print the usage.
|
|
// just print the usage.
|
|
@@ -61,6 +57,10 @@ func main() {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ // TODO: remove once `-d` is retired
|
|
|
|
+ handleGlobalDaemonFlag()
|
|
|
|
+ clientCli := client.NewDockerCli(stdin, stdout, stderr, clientFlags)
|
|
|
|
+
|
|
c := cli.New(clientCli, daemonCli)
|
|
c := cli.New(clientCli, daemonCli)
|
|
if err := c.Run(flag.Args()...); err != nil {
|
|
if err := c.Run(flag.Args()...); err != nil {
|
|
if sterr, ok := err.(cli.StatusError); ok {
|
|
if sterr, ok := err.(cli.StatusError); ok {
|