-
Notifications
You must be signed in to change notification settings - Fork 711
Manual page generation #2877
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
Manual page generation #2877
Conversation
Thanks! Looks good on a first glance. |
import Data.Char (toUpper) | ||
import Data.List (intercalate) | ||
|
||
data CommandVisibility = Visible | Hidden |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this duplicates the functionality of CommandType
in D.S.Command
.
LGTM but I'd like to see some parts moved to |
A potential future improvement may be to add support for generating per-command manpages (e.g. |
@23Skidoo, thanks for the review. I will try to address the comments over the next couple of days. Regarding Another thing to consider with help displaying manual pages is that man is not availabe on Windows. IIRC git deals with it by making |
I am not so sure. If you can generate a manpage with information about all commands from Code for help formatting and option handling lives in the Cabal lib because we want to support things like
In these cases we can just revert to the old mode of output. |
I have now moved command-related bits to |
LGTM now. |
Merged, thanks! |
Manual page generation from command list defined in
Main
. Based on the approach and implementation in darcs.Fixes #848.