tobimensch / cli2man

Converts the help message of a program into a manpage
25 stars 8 forks source link

include subcommands #7

Open JOJ0 opened 4 years ago

JOJ0 commented 4 years ago

Hi, my program has subcommands that have their own extensive --help output.

command -h
command subcmd1 -h
command subcmd2 -h
command subcmd3 -h

Is there a quick way to tell cli2man to combine the outputs of all these commands into a single manpage? Or would this rather be a case where a seperate manpage for each of the programs should be made and then statet in the see-also section?

thanks and all the best Jojo

tobimensch commented 4 years ago

Pull requests are welcome.

At this point separate manpages would probably easier, but adding support for this feature is certainly not impossible, if someone wants to. I don't have time for this feature though, as I don't have a need for it currently.