fsprojects / Argu

A declarative CLI argument parser for F#
https://fsprojects.github.io/Argu
MIT License
457 stars 74 forks source link

feat: subcommand specific help header? #163

Open babysnakes opened 3 years ago

babysnakes commented 3 years ago

Description

I'm looking for a way to specify subcommand specific help header (a description - could be long - that precedes the options). Currently I only found a way to specify the same help header across all subcommands (with the Create function.

(Sorry if I miss something obvious but I'm on new territory here 😄).

Thanks in advance.

Haim

panmona commented 2 years ago

I am wondering the same thing and couldn't find anything about it. I think that this is currently not implemented.

babysnakes commented 2 years ago

@panmau, Yeah, I figured it out by now 🙂.

What I finally did is add a --long-help subcommand for all subcommands where I print the description. Coming from unix to dotnet, it seems that the tools for supporting command line applications are not mature enough but hopefully it'll get there.

I'm leaving it open so maybe it'll get implemented.

bartelink commented 10 months ago

If either of you fancy taking a run at this, there are now active maintainers, so any approach can get a yes/no and get reviewed and/or released quickly