-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can you populate multi command help #42
Comments
I don't think there is a good way to do this within this library's framework |
Thank you. Yes, I was also stuck seeing how to do this cleanly. One idea is to "somehow" use the type specification to generate unique tags / enums / strings as keys to hash table, map, JSON etc
I like this in that it would use your elegant type-level design but separate the "help data". Thoughts? |
As a workaround I can specify the program description as follows
If I could suppress "Available commands:" section. This would be sufficient. Also it is redundant as it stands now since
doesn't give any additional information. Perhaps just dropping "Available commands" is a good idea in any case or perhaps the case a program description is supplied with showHelpOnEmpty. Thoughts? |
Related is that given -h is supported on
how can we specify other flags at top level? |
So there actually is an intermediate solution in between https://hackage.haskell.org/package/turtle-1.4.3/docs/Turtle-Options.html For example, it has a https://hackage.haskell.org/package/turtle-1.4.3/docs/Turtle-Options.html#v:subcommandGroup |
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.
The text was updated successfully, but these errors were encountered: