cmd.Flags().StringArrayVar(&o.PruneWhitelist,"prune-whitelist",o.PruneWhitelist,"Overwrite the default whitelist with <group/version/kind> for --prune")
cmd.Flags().StringArrayVar(&o.PruneWhitelist,"prune-whitelist",o.PruneWhitelist,"Overwrite the default whitelist with <group/version/kind> for --prune")
cmd.Flags().BoolVar(&o.OpenAPIPatch,"openapi-patch",o.OpenAPIPatch,"If true, use openapi to calculate diff when the openapi presents and the resource can be found in the openapi spec. Otherwise, fall back to use baked-in types.")
cmd.Flags().BoolVar(&o.OpenAPIPatch,"openapi-patch",o.OpenAPIPatch,"If true, use openapi to calculate diff when the openapi presents and the resource can be found in the openapi spec. Otherwise, fall back to use baked-in types.")
cmd.Flags().BoolVar(&o.ServerDryRun,"server-dry-run",o.ServerDryRun,"If true, request will be sent to server with dry-run flag, which means the modifications won't be persisted. This is an alpha feature and flag.")
cmd.Flags().BoolVar(&o.ServerDryRun,"server-dry-run",o.ServerDryRun,"If true, request will be sent to server with dry-run flag, which means the modifications won't be persisted. This is an alpha feature and flag.")
cmdutil.AddDryRunFlag(cmd)
cmd.Flags().Bool("dry-run",false,"If true, only print the object that would be sent, without sending it. Warning: --dry-run cannot accurately output the result of merging the local manifest and the server-side data. Use --server-dry-run to get the merged result instead.")