User:Timothee Flutre/Notebook/Postdoc/2011/11/10

From OpenWetWare

(Difference between revisions)
Jump to: navigation, search
(Entry title: how to generate man page)
m (Entry title: add link)
Line 8: Line 8:
==Entry title==
==Entry title==
-
* generate a [http://en.wikipedia.org/wiki/Man_page man page] from the "--help" and "--version" options of a custom program:
+
* generate a [http://en.wikipedia.org/wiki/Man_page man page] from the "--help" and "--version" options of a custom program using [http://www.gnu.org/s/help2man/ help2man]:
  gcc -Wall -o myprogram myprogram.c
  gcc -Wall -o myprogram myprogram.c

Revision as of 16:17, 10 November 2011

Project name Main project page
Previous entry      Next entry

Entry title

  • generate a man page from the "--help" and "--version" options of a custom program using help2man:
gcc -Wall -o myprogram myprogram.c
help2man -o man_myprogram ./myprogram
man ./man_myprogram


Personal tools