k3s/pkg/kubectl/cmd
Kubernetes Submit Queue 9c7b59778c Merge pull request #46394 from alexandercampbell/write-help-messages-to-stdout
Automatic merge from submit-queue (batch tested with PRs 46394, 46650, 46436, 46673, 46212)

Write "kubectl options" help message to stdout, not stderr

Fix a very minor issue causing `kubectl` to write its help messages to `stderr` instead of `stdout`.

Try this:

`kubectl options | grep log`

It should print only the options related to logging, but right now it prints the entire help menu (since it's printing to stderr).

This patch brings us closer to unix convention and reduces user friction.

~~Another use case (if a user can't remember whether it's `-r` or `-R` for recursion):~~

~~`kubectl patch -h | grep recursive`~~

Update: this patch only affects `kubectl options`. The other commands are working as intended.

**Release note**:

```release-note
NONE
```
2017-05-31 00:14:00 -07:00
..
auth Introduce visibility rules to kubernetes code. 2017-05-15 12:50:56 -07:00
config Merge pull request #45755 from ahmetb/set-context-differentiate 2017-05-30 14:57:07 -07:00
rollout Introduce visibility rules to kubernetes code. 2017-05-15 12:50:56 -07:00
set Merge pull request #46074 from zjj2wry/set-image 2017-05-30 03:47:02 -07:00
templates Introduce visibility rules to kubernetes code. 2017-05-15 12:50:56 -07:00
testdata/edit add `kubectl apply edit-last-applied` subcommand 2017-05-26 00:20:48 +08:00
testing Introduce visibility rules to kubernetes code. 2017-05-15 12:50:56 -07:00
util Make OpenAPI GVK and Action extensions all lower-case 2017-05-30 14:43:27 -07:00
BUILD Merge pull request #42256 from shiywang/edit 2017-05-26 15:58:57 -07:00
annotate.go Signed-off-by: bruceauyeung <ouyang.qinhua@zte.com.cn> 2017-04-25 15:07:01 +08:00
annotate_test.go kubectl/cmd: remove a bunch of unused parameters 2017-04-04 10:36:30 +01:00
apiversions.go cmd: fix deprecation warning bug 2017-05-18 16:48:13 -07:00
apply.go add `kubectl apply edit-last-applied` subcommand 2017-05-26 00:20:48 +08:00
apply_edit_last_applied.go add `kubectl apply edit-last-applied` subcommand 2017-05-26 00:20:48 +08:00
apply_set_last_applied.go add `kubectl apply edit-last-applied` subcommand 2017-05-26 00:20:48 +08:00
apply_test.go Move API annotations into annotation_key_constants and remove api/annotations package 2017-05-16 21:55:23 -07:00
apply_view_last_applied.go Merge pull request #44207 from shiywang/hotfix 2017-04-24 20:25:48 -07:00
attach.go Move client/unversioned/remotecommand to client-go 2017-05-15 16:28:56 +03:00
attach_test.go clean up: put test description in head to locate quickly 2017-05-19 02:04:59 +08:00
autoscale.go Extract a bunch more strings from kubectl 2017-04-06 20:12:50 -07:00
certificates.go move category expansion out of restmapper 2017-03-27 13:54:05 -04:00
clusterinfo.go cmd: fix deprecation warning bug 2017-05-18 16:48:13 -07:00
clusterinfo_dump.go Merge pull request #44088 from xingzhou/kube-44069 2017-04-18 07:42:14 -07:00
clusterinfo_dump_test.go
cmd.go cmd/options: `kubectl options` writes to `out` stream 2017-05-28 11:23:44 -07:00
cmd_test.go kubectl: improve deprecatedAlias unit test 2017-05-19 14:49:03 -07:00
completion.go Merge pull request #43297 from mvdan/kubectl-params 2017-04-13 04:07:21 -07:00
convert.go Merge pull request #43297 from mvdan/kubectl-params 2017-04-13 04:07:21 -07:00
cp.go Merge pull request #43297 from mvdan/kubectl-params 2017-04-13 04:07:21 -07:00
cp_test.go
create.go refactor edit to remove cobra dependency and also make it reusable 2017-04-18 20:44:25 +08:00
create_clusterrole.go support NonResourceURL for kubectl create clusterrole 2017-05-26 10:07:44 +08:00
create_clusterrole_test.go
create_clusterrolebinding.go Extract a bunch more strings from kubectl 2017-04-06 20:12:50 -07:00
create_configmap.go Extract a bunch more strings from kubectl 2017-04-06 20:12:50 -07:00
create_configmap_test.go
create_deployment.go Extract a bunch more strings from kubectl 2017-04-06 20:12:50 -07:00
create_deployment_test.go Introduce new generator for apps/v1beta1 deployments 2017-03-10 12:08:01 +01:00
create_namespace.go Extract a bunch more strings from kubectl 2017-04-06 20:12:50 -07:00
create_namespace_test.go
create_pdb.go PDB MaxUnavailable: kubectl changes 2017-05-23 07:18:44 -07:00
create_quota.go Extract a bunch more strings from kubectl 2017-04-06 20:12:50 -07:00
create_quota_test.go Fix test not use test flags 2017-05-24 10:14:00 +08:00
create_role.go support NonResourceURL for kubectl create clusterrole 2017-05-26 10:07:44 +08:00
create_role_test.go fix specialized verbs in create role 2017-05-11 09:32:43 +08:00
create_rolebinding.go Extract a bunch more strings from kubectl 2017-04-06 20:12:50 -07:00
create_rolebinding_test.go Supplement unit tests to `kubectl create rolebinding` command. 2017-03-29 16:36:22 +08:00
create_secret.go Extract a bunch more strings from kubectl 2017-04-06 20:12:50 -07:00
create_secret_test.go
create_service.go Extract a bunch more strings from kubectl 2017-04-06 20:12:50 -07:00
create_service_test.go add test to cover more in kubectl create service 2017-05-16 18:45:38 +08:00
create_serviceaccount.go Extract a bunch more strings from kubectl 2017-04-06 20:12:50 -07:00
create_serviceaccount_test.go
create_test.go
delete.go orphan when kubectl delete --cascade=false 2017-05-11 09:11:07 -04:00
delete_test.go orphan when kubectl delete --cascade=false 2017-05-11 09:11:07 -04:00
describe.go Signed-off-by: bruceauyeung <ouyang.qinhua@zte.com.cn> 2017-04-25 15:07:01 +08:00
describe_test.go
drain.go Extract a bunch more strings from kubectl 2017-04-06 20:12:50 -07:00
drain_test.go move ref.go to its own subpackage 2017-04-13 10:02:43 -07:00
edit.go refactor edit to remove cobra dependency and also make it reusable 2017-04-18 20:44:25 +08:00
edit_test.go add `kubectl apply edit-last-applied` subcommand 2017-05-26 00:20:48 +08:00
exec.go Merge pull request #43663 from shiywang/quato 2017-05-22 19:07:12 -07:00
exec_test.go clean up: put test description in head to locate quickly 2017-05-19 02:04:59 +08:00
explain.go remove --api-version 2017-05-19 10:56:35 +08:00
expose.go Merge pull request #43297 from mvdan/kubectl-params 2017-04-13 04:07:21 -07:00
expose_test.go
get.go Merge pull request #43501 from xingzhou/kube-43126 2017-05-22 00:22:40 -07:00
get_test.go Reorganize the output of "kubectl get -o json" 2017-04-14 11:08:34 +08:00
help.go Signed-off-by: bruceauyeung <ouyang.qinhua@zte.com.cn> 2017-04-25 15:07:01 +08:00
label.go Signed-off-by: bruceauyeung <ouyang.qinhua@zte.com.cn> 2017-04-25 15:07:01 +08:00
label_test.go kubectl/cmd: remove a bunch of unused parameters 2017-04-04 10:36:30 +01:00
logs.go **What this PR does / why we need it**: 2017-05-21 20:44:21 -07:00
logs_test.go
options.go cmd/options: `kubectl options` writes to `out` stream 2017-05-28 11:23:44 -07:00
patch.go Signed-off-by: bruceauyeung <ouyang.qinhua@zte.com.cn> 2017-04-25 15:07:01 +08:00
patch_test.go
plugin.go kubectl plugins have access config, global flags and environment 2017-05-19 19:17:43 -03:00
plugin_test.go kubectl plugins have access config, global flags and environment 2017-05-19 19:17:43 -03:00
portforward.go Move client/unversioned/remotecommand to client-go 2017-05-15 16:28:56 +03:00
portforward_test.go kubectl/cmd: remove a bunch of unused parameters 2017-04-04 10:36:30 +01:00
proxy.go kubectl: fixes issues #45736 and #45737 2017-05-22 18:57:11 -04:00
replace.go cmd: fix deprecation warning bug 2017-05-18 16:48:13 -07:00
replace_test.go
rollingupdate.go Merge pull request #46139 from monopole/removeDepOnPkgHelper 2017-05-23 19:42:59 -07:00
rollingupdate_test.go small change to clear 2017-05-11 20:09:31 +08:00
run.go cmd: fix deprecation warning bug 2017-05-18 16:48:13 -07:00
run_test.go Extract a bunch more strings from kubectl 2017-04-06 20:12:50 -07:00
scale.go cmd: fix deprecation warning bug 2017-05-18 16:48:13 -07:00
stop.go Signed-off-by: bruceauyeung <ouyang.qinhua@zte.com.cn> 2017-04-25 15:07:01 +08:00
taint.go Merge pull request #44740 from ravisantoshgudimetla/kubectl_taints_label_selector#44522 2017-05-05 09:25:02 -07:00
taint_test.go Changes to kubectl taint to respect selector flag 2017-04-28 10:28:26 -04:00
top.go Extract a bunch more strings from kubectl 2017-04-06 20:12:50 -07:00
top_node.go Extract a bunch more strings from kubectl 2017-04-06 20:12:50 -07:00
top_node_test.go hack/update-bazal.sh 2017-05-15 13:51:39 -07:00
top_pod.go Extract a bunch more strings from kubectl 2017-04-06 20:12:50 -07:00
top_pod_test.go rely on staging/metrics instead of on 2017-05-15 13:50:49 -07:00
top_test.go rely on staging/metrics instead of on 2017-05-15 13:50:49 -07:00
version.go Signed-off-by: bruceauyeung <ouyang.qinhua@zte.com.cn> 2017-04-25 15:07:01 +08:00