Skip to content
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

Auto-generate man pages #200

Closed
leifericf opened this issue Nov 2, 2014 · 2 comments
Closed

Auto-generate man pages #200

leifericf opened this issue Nov 2, 2014 · 2 comments

Comments

@leifericf
Copy link

Excerpt from "Build Awesome Command-Line Applications in Ruby" (page 51):

Unfortunately, neither OptionParser nor GLI provide a way to autogenerate a man page so that your documentation can automatically be kept consistent. Perhaps you’ll be inspired and create such a system.

This sounds like a very useful feature to add and, at the time of writing, I'm feeling inspired.

My skill level is not high enough to implement this feature (yet), but maybe we can get a discussion going on how this could best be implemented? Anyone else interested in this feature?

@davetron5000
Copy link
Owner

In theory, the way the help system is designed, you could generate either a man page directly, or something that could be fed into the tools discussed in the book:

By using the document listener, you can get fed all parsed help documentation without having to worry about it yourself.

Developing this stuff via test-driven-development is somewhat tricky, but you could make a feature in features/ that basically runs the custom document listener as a sanity check.

@davetron5000
Copy link
Owner

Closing as old, though I think this would be a good feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants