pcapriotti / optparse-applicative

Applicative option parser
BSD 3-Clause "New" or "Revised" License
914 stars 116 forks source link

Is there a way to print the entire CLI surface? #496

Open eyeinsky opened 2 weeks ago

eyeinsky commented 2 weeks ago

With exe subcommand --help one can print out the arguments and options for that specific subcommand -- is there a way to print the entire subcommand tree?

HuwCampbell commented 3 days ago

So, not directly no; but it should be relatively straight forward to write something with mapParser. I guess it just depends on what you want the output to look like.

eyeinsky commented 3 days ago

I was just looking for confirmation that there isn't a library function that does it, I'll likely attempt to add it soon. The hint to use mapParser is also valuable, thanks!