Re: convert ggo file to man page
Andre Noll <[email protected]> Thu, 17 Sep 2009 13:19:04 +0200
| Newsgroups | gmane.comp.gnu.gengetopt.general |
|---|---|
| Message-ID | <[email protected]> |
On 11:29, Lorenzo Bettini wrote: > >>>True. But this does not work when cross-compiling. Would it be > >>>difficult to implement something like > >>> > >>> gengetopt --print-detailed-help < my.ggo > >>> > >>>which would output the detailed help text directly? > >>> > >>there are already options for this :-) > > > >Wow :) > >Thanks for pointing that out, and sorry for not RTFM. > > No problem :-) > but does this solve the problem of cross-compiling? > Moreover, I guess help2man expects a program name, not a simple output? Well, it's a first step. If help2man could read from stdin instead of insisting to call an executable to obtain its input, the cross-compiling problem would be solved. But that's not a real problem because one can always use a shell script wrapper like #!/bin/sh case $1 in --help) gengetopt --show-help < my.ggo;; --detailed-help) gengetopt --show-detailed-help < my.ggo;; esac Best Andre -- The only person who always got his work done by Friday was Robinson Crusoe _______________________________________________ Help-gengetopt mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-gengetopt
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFKshsoWto1QDEAkw8RAokDAKCHuh8pH3xZlj/3ovT6LIy63aTfwgCgjKRl T9fhRLPabwPzzGddnTpBfXM= =kPy3 -----END PGP SIGNATURE-----