Skip to content

Conversation

@9999years
Copy link
Contributor

Example code should use hsubparser instead of subparser because generating good --help text is one of the main responsibilities of a CLI argument parsing framework.

I was using the example code and found myself very confused that foo cmd --help would ignore cmd entirely but foo --help cmd would work correctly. This behavior is extremely unintuitive and should not be the default.

Example code should use `hsubparser` instead of `subparser` because
generating good `--help` text is one of the main responsibilities of a
CLI argument parsing framework.

I was using the example code and found myself very confused that `foo
cmd --help` would ignore `cmd` entirely but `foo --help cmd` would work
correctly. This behavior is extremely unintuitive and should not be
the default.
@HuwCampbell HuwCampbell merged commit 7861d08 into pcapriotti:master Apr 9, 2025
10 checks passed
@HuwCampbell
Copy link
Collaborator

Ta.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants