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

From OpenWetWare

(Difference between revisions)
Jump to: navigation, search
(Autocreate 2011/11/10 Entry for User:Timothee_Flutre/Notebook/Postdoc)
(Entry title: how to generate man page)
Line 7: Line 7:
<!-- ##### DO NOT edit above this line unless you know what you are doing. ##### -->
<!-- ##### DO NOT edit above this line unless you know what you are doing. ##### -->
==Entry title==
==Entry title==
-
* Insert content here...
 
 +
* generate a [http://en.wikipedia.org/wiki/Man_page man page] from the "--help" and "--version" options of a custom program:
 +
 +
gcc -Wall -o myprogram myprogram.c
 +
help2man -o man_myprogram ./myprogram
 +
man ./man_myprogram
<!-- ##### DO NOT edit below this line unless you know what you are doing. ##### -->
<!-- ##### DO NOT edit below this line unless you know what you are doing. ##### -->

Revision as of 17:16, 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:
gcc -Wall -o myprogram myprogram.c
help2man -o man_myprogram ./myprogram
man ./man_myprogram


Personal tools