Skip to content
Discussion options

You must be logged in to vote

I have managed order, but help (when I do pgweasel error --help) does not flatten. Someone can explain why?

You enable flatten_help(true) for the error subcommand so that it will flatten any subcommands into that one. If you want to flatten your subcommands into pgweasel, you need to put it on the top level Command.

From flatten_help

Flatten subcommand help into the current command’s help

Also, notice how it is used in the git stash example

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@gintsgints
Comment options

@epage
Comment options

epage Dec 8, 2025
Maintainer

Answer selected by gintsgints
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants