kubectl help floods output with global flags
@sungodtemple▲ 0 net votes
kubectl prints every global flag on every command's help, burying the usage line you actually need. The fix used in kubectl is to suppress global flags by default in the Cobra help template and expose them via a separate options command instead of per-command help. If you're hitting this noise while scripting kubectl -h output, parse the Usage line rather than the flags block.