diff --git a/changelog/17308.txt b/changelog/17308.txt new file mode 100644 index 000000000..5a2bf8bac --- /dev/null +++ b/changelog/17308.txt @@ -0,0 +1,3 @@ +```release-note:improvement: +cli: User-requested -help text now appears on stdout for paging rather than stderr +``` diff --git a/command/main.go b/command/main.go index 4a5e80282..1ac728750 100644 --- a/command/main.go +++ b/command/main.go @@ -228,7 +228,8 @@ func RunCustom(args []string, runOpts *RunOptions) int { HelpFunc: groupedHelpFunc( cli.BasicHelpFunc("vault"), ), - HelpWriter: runOpts.Stderr, + HelpWriter: runOpts.Stdout, + ErrorWriter: runOpts.Stderr, HiddenCommands: hiddenCommands, Autocomplete: true, AutocompleteNoDefaultFlags: true,