Skip to content

Commit

Permalink
Hide --clear-cache flag for build and run
Browse files Browse the repository at this point in the history
[buildpacks/roadmap#30]

Signed-off-by: Andrew Meyer <ameyer@pivotal.io>
  • Loading branch information
matthewmcnew committed Jan 4, 2019
1 parent 4bd09a9 commit 7646471
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/pack/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ func buildCommandFlags(cmd *cobra.Command, buildFlags *pack.BuildFlags) {
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")
cmd.Flags().BoolVar(&buildFlags.NoPull, "no-pull", false, "Skip pulling images before use")
cmd.Flags().BoolVar(&buildFlags.ClearCache, "clear-cache", false, "Clear image's associated cache before building")
_ = cmd.Flags().MarkHidden("clear-cache")
cmd.Flags().StringSliceVar(&buildFlags.Buildpacks, "buildpack", nil, "Buildpack ID, path to directory, or path/URL to .tgz file"+multiValueHelp("buildpack"))
}

Expand Down

0 comments on commit 7646471

Please sign in to comment.