Skip to content

Commit

Permalink
Mark deprecated flags hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
nkubala committed Apr 14, 2021
1 parent 703f7e2 commit dcdff66
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion cmd/skaffold/app/cmd/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ func (fl *Flag) flag(cmdName string) *pflag.Flag {
f.NoOptDefVal = fl.NoOptDefVal
}
f.Shorthand = fl.Shorthand
f.Hidden = fl.Hidden
f.Hidden = fl.Hidden || (fl.Deprecated != "")
f.Deprecated = fl.Deprecated
return f
}
Expand Down
6 changes: 0 additions & 6 deletions docs/content/en/docs/references/cli/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,6 @@ Options:
-p, --profile=[]: Activate profiles by name (prefixed with `-` to disable a profile)
--profile-auto-activation=true: Set to false to disable profile auto activation
--remote-cache-dir='': Specify the location of the git repositories cache (default $HOME/.skaffold/repos)
--render-only=false: Print rendered Kubernetes manifests instead of deploying them
--rpc-http-port=50052: tcp port to expose event REST API over HTTP
--rpc-port=50051: tcp port to expose event API
--skip-tests=false: Whether to skip the tests after building
Expand Down Expand Up @@ -711,7 +710,6 @@ Env vars:
* `SKAFFOLD_PROFILE` (same as `--profile`)
* `SKAFFOLD_PROFILE_AUTO_ACTIVATION` (same as `--profile-auto-activation`)
* `SKAFFOLD_REMOTE_CACHE_DIR` (same as `--remote-cache-dir`)
* `SKAFFOLD_RENDER_ONLY` (same as `--render-only`)
* `SKAFFOLD_RPC_HTTP_PORT` (same as `--rpc-http-port`)
* `SKAFFOLD_RPC_PORT` (same as `--rpc-port`)
* `SKAFFOLD_SKIP_TESTS` (same as `--skip-tests`)
Expand Down Expand Up @@ -954,8 +952,6 @@ Options:
-p, --profile=[]: Activate profiles by name (prefixed with `-` to disable a profile)
--profile-auto-activation=true: Set to false to disable profile auto activation
--remote-cache-dir='': Specify the location of the git repositories cache (default $HOME/.skaffold/repos)
--render-only=false: Print rendered Kubernetes manifests instead of deploying them
--render-output='': Writes '--render-only' output to the specified file
--rpc-http-port=50052: tcp port to expose event REST API over HTTP
--rpc-port=50051: tcp port to expose event API
--skip-tests=false: Whether to skip the tests after building
Expand Down Expand Up @@ -1002,8 +998,6 @@ Env vars:
* `SKAFFOLD_PROFILE` (same as `--profile`)
* `SKAFFOLD_PROFILE_AUTO_ACTIVATION` (same as `--profile-auto-activation`)
* `SKAFFOLD_REMOTE_CACHE_DIR` (same as `--remote-cache-dir`)
* `SKAFFOLD_RENDER_ONLY` (same as `--render-only`)
* `SKAFFOLD_RENDER_OUTPUT` (same as `--render-output`)
* `SKAFFOLD_RPC_HTTP_PORT` (same as `--rpc-http-port`)
* `SKAFFOLD_RPC_PORT` (same as `--rpc-port`)
* `SKAFFOLD_SKIP_TESTS` (same as `--skip-tests`)
Expand Down

0 comments on commit dcdff66

Please sign in to comment.