Jonas Pfenniger
4/2/2007 9:36:00 AM
2007/4/2, William Morgan <wmorgan-ruby-talk@masanjin.net>:
> Excerpts from Jonas Pfenniger's message of Sun Apr 01 02:57:54 -0700 2007:
> > it's indeed a really nice parser. I especially liked how it's small
> > and still very powerful. What do you think it would take to add a
> > groff -> man output generator ?
>
> There's a gnu tool called "help2man" that works very well at turning
> Trollop output into a man page, especially if you format things how it
> expects them.
>
> I've just release version 1.6, which doesn't do the curses screen-width
> detection magic unless it's running on a terminal. This is necessary for
> help2man (and "less"!) to work right.
Cool ! I might try it on my next project. Do you plan to add a default
usage if no banner is given ? Something like : "Usage :
#{File.basename($0)} [OPTIONS] ...".
--
Cheers,
zimbatm