Skip to content

Commit 7646471

Browse files
committed
Hide --clear-cache flag for build and run
[buildpacks/roadmap#30] Signed-off-by: Andrew Meyer <[email protected]>
1 parent 4bd09a9 commit 7646471

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmd/pack/main.go

+1
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ func buildCommandFlags(cmd *cobra.Command, buildFlags *pack.BuildFlags) {
119119
cmd.Flags().StringVar(&buildFlags.EnvFile, "env-file", "", "Build-time environment variables file\nOne variable per line, of the form 'VAR=VALUE' or 'VAR'\nWhen using latter value-less form, value will be taken from current\n environment at the time this command is executed")
120120
cmd.Flags().BoolVar(&buildFlags.NoPull, "no-pull", false, "Skip pulling images before use")
121121
cmd.Flags().BoolVar(&buildFlags.ClearCache, "clear-cache", false, "Clear image's associated cache before building")
122+
_ = cmd.Flags().MarkHidden("clear-cache")
122123
cmd.Flags().StringSliceVar(&buildFlags.Buildpacks, "buildpack", nil, "Buildpack ID, path to directory, or path/URL to .tgz file"+multiValueHelp("buildpack"))
123124
}
124125

0 commit comments

Comments
 (0)