swift-argument-parser icon indicating copy to clipboard operation
swift-argument-parser copied to clipboard

Add an example on how to provide additional help for each item in an enum

Open bkhouri opened this issue 3 months ago • 2 comments

As I was reading the Documentation, I was unclear to me how we an additional help message for each item in an enum. It would be great if the documentation provided an example of such. Maybe in the `Customizing Help for Commands* or a new document all together.

bkhouri avatar Sep 23 '25 19:09 bkhouri

I've done some work to support this here: https://github.com/apple/swift-argument-parser/pull/647/files But this does indeed need documentation! :)

bripeticca avatar Sep 23 '25 20:09 bripeticca

Hi @bkhouri @bripeticca I took a stab at this, lmk if it looks good or needs fixing :))

louisunlimited avatar Oct 04 '25 02:10 louisunlimited