Difference between revisions of "User:Timothee Flutre/Notebook/Postdoc/2011/11/10"

From OpenWetWare
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 14:17, 10 November 2011

Owwnotebook icon.png Project name <html><img src="/images/9/94/Report.png" border="0" /></html> Main project page
<html><img src="/images/c/c3/Resultset_previous.png" border="0" /></html>Previous entry<html>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</html>Next entry<html><img src="/images/5/5c/Resultset_next.png" border="0" /></html>

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