|
@@ -4,7 +4,6 @@ import (
|
|
|
"fmt"
|
|
|
"os"
|
|
|
|
|
|
- "github.com/docker/docker/cli"
|
|
|
"github.com/docker/docker/daemon/config"
|
|
|
"github.com/docker/docker/dockerversion"
|
|
|
"github.com/docker/docker/pkg/jsonmessage"
|
|
@@ -32,7 +31,7 @@ func newDaemonCommand() (*cobra.Command, error) {
|
|
|
Short: "A self-sufficient runtime for containers.",
|
|
|
SilenceUsage: true,
|
|
|
SilenceErrors: true,
|
|
|
- Args: cli.NoArgs,
|
|
|
+ Args: NoArgs,
|
|
|
RunE: func(cmd *cobra.Command, args []string) error {
|
|
|
opts.flags = cmd.Flags()
|
|
|
return runDaemon(opts)
|
|
@@ -40,7 +39,7 @@ func newDaemonCommand() (*cobra.Command, error) {
|
|
|
DisableFlagsInUseLine: true,
|
|
|
Version: fmt.Sprintf("%s, build %s", dockerversion.Version, dockerversion.GitCommit),
|
|
|
}
|
|
|
- cli.SetupRootCommand(cmd)
|
|
|
+ SetupRootCommand(cmd)
|
|
|
|
|
|
flags := cmd.Flags()
|
|
|
flags.BoolP("version", "v", false, "Print version information and quit")
|