Skip to content

Usage output should default to stdout not stderr for subcommands too #114

Closed
@rhcarvalho

Description

@rhcarvalho

#71 fixed #31, making command --help | grep something work as expected, however it doesn't work for subcommands like command subcmd --help | grep something.

This can be reproduced by compiling the example program from the README, and:

$ go run main.go echo --help | grep help        # won't work
$ go run main.go echo --help 2>&1 | grep help   # hack

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions