typed-argparse / typed-argparse

💡 write type-safe and elegant CLIs with a clear separation of concerns.
https://typed-argparse.github.io/typed-argparse/
MIT License
28 stars 6 forks source link

description in `SubParser`s #33

Closed kopp closed 1 year ago

kopp commented 1 year ago

Is it possible to specify some kind of description of the sub-command?

For example in the example I would like to tell the user what <program> foo start will do, what <program> foo stop will do etc.

I searched for a parameter to tap.SubParser like description but found none. Other "natural" choices where to place such a description were (in my opinion)

bluenote10 commented 1 year ago

Yes, this is a frequently requested feature, just requested in the lasted opened issue #32 as well.

I've just added some minimal support in #34 which adds:

That's basically what argparse allows. I hope this resolves the issue?

New version 0.2.8 is available now on PyPI.