Merge pull request #2496 from crazy-max/dial-cmd-flags

dial-stdio: remove extra cmd.flags()
This commit is contained in:
Tõnis Tiigi 2024-06-03 09:08:32 -07:00 committed by GitHub
commit 03f84d2e83
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -125,7 +125,6 @@ func dialStdioCmd(dockerCli command.Cli, rootOpts *rootOptions) *cobra.Command {
}
flags := cmd.Flags()
cmd.Flags()
flags.StringVar(&opts.platform, "platform", os.Getenv("DOCKER_DEFAULT_PLATFORM"), "Target platform: this is used for node selection")
flags.StringVar(&opts.progress, "progress", "quiet", "Set type of progress output (auto, plain, tty).")
return cmd