dial-stdio: remove extra cmd.flags()

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax 2024-06-03 14:14:55 +02:00
parent bc83ecb538
commit c58599ca50
No known key found for this signature in database
GPG Key ID: ADE44D8C9D44FBE4
1 changed files with 0 additions and 1 deletions

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