• Kubernetes Submit Queue's avatar
    Merge pull request #46394 from alexandercampbell/write-help-messages-to-stdout · 9c7b5977
    Kubernetes Submit Queue authored
    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
    ```
    9c7b5977
Name
Last commit
Last update
..
apis Loading commit data...
client Loading commit data...
cluster Loading commit data...
cmd Loading commit data...
deploy Loading commit data...
develop Loading commit data...
docs/api-reference Loading commit data...
manifests Loading commit data...
pkg Loading commit data...
registry/cluster Loading commit data...
BUILD Loading commit data...
Makefile Loading commit data...
OWNERS Loading commit data...
README.md Loading commit data...