How can you set help strings for commands? I'm able to generate help for individual flags but not for the commands themselves. Suppose we have
data Commands = Hello{myflag::String <?> "it works!"} | Goodbye deriving (Show, Generic)
How can one generate the help "Print greeting" and "Say goodbye" for hello and goodbye as below. The mechanism is available in the underlying Options.Applicative.
Usage: commands COMMAND
Available options:
-h,--help Show this help text
Available commands:
hello Print greeting
goodbye Say goodbye
How can you set help strings for commands? I'm able to generate help for individual flags but not for the commands themselves. Suppose we have
How can one generate the help "Print greeting" and "Say goodbye" for hello and goodbye as below. The mechanism is available in the underlying Options.Applicative.