Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit 3c287fa

Browse files
authored
Merge pull request #1446 from gtardif/build_flags
Added deprecated build flags parallel, compress, force-rm
2 parents 6562ec8 + 6482f79 commit 3c287fa

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

cli/cmd/compose/build.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,13 @@ func buildCommand(p *projectOptions) *cobra.Command {
5959
cmd.Flags().BoolVar(&opts.pull, "pull", false, "Always attempt to pull a newer version of the image.")
6060
cmd.Flags().StringVar(&opts.progress, "progress", "auto", `Set type of progress output ("auto", "plain", "tty")`)
6161
cmd.Flags().StringArrayVar(&opts.args, "build-arg", []string{}, "Set build-time variables for services.")
62+
cmd.Flags().Bool("parallel", true, "Build images in parallel. DEPRECATED")
63+
cmd.Flags().MarkHidden("parallel") //nolint:errcheck
64+
cmd.Flags().Bool("compress", true, "Compress the build context using gzip. DEPRECATED")
65+
cmd.Flags().MarkHidden("compress") //nolint:errcheck
66+
cmd.Flags().Bool("force-rm", true, "Always remove intermediate containers. DEPRECATED")
67+
cmd.Flags().MarkHidden("force-rm") //nolint:errcheck
68+
6269
return cmd
6370
}
6471

0 commit comments

Comments
 (0)