LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 02-01-2013, 12:05 PM   #1
9gagarmy
LQ Newbie
 
Registered: Oct 2012
Posts: 4

Rep: Reputation: Disabled
How to make program man page in linux


Idk, but I think have 2 kind of manual:
First is just show u when u type man something like:
Quote:
man ifconfig
Second is just like when u type
Quote:
ifconfig --help
and it show all the option.

How to make 2 type of it ? Or just give me a keyword or some example, I was searching with pod2man or groff but i dont know how to use it.
 
Old 02-01-2013, 12:13 PM   #2
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,776

Rep: Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614
Quote:
Originally Posted by 9gagarmy View Post
Idk, but I think have 2 kind of manual:
First is just show u when u type man something like:
Code:
man ifconfig
Second is just like when u type
Code:
ifconfig --help
and it show all the option. How to make 2 type of it ? Or just give me a keyword or some example, I was searching with pod2man or groff but i dont know how to use it.
Spell out your words...text-speak isn't nice for anyone to try to read. And if you don't know how to do something that you want to do, I guess you'll have to learn. There are over 5 MILLION hits in Google for "how to create a man page in linux". Such as this one:
http://www.cyberciti.biz/faq/linux-u...ing-a-manpage/

...that has examples. And there is only ONE type of man page. The other (where you type in "--help" for example), is written in your program itself. It takes the "--help" as a command-line option, and prints out whatever you tell it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
man page is not found although $MANPATH and man.conf changed Abbraxas Linux - Newbie 3 09-05-2011 06:40 PM
info <program> just gives me the man page Robhogg Ubuntu 1 10-17-2006 01:25 PM
Linux Man Page Modula for PHPNuke Tux_Phoenix General 0 01-24-2005 12:34 AM
What is a Linux Man Page? Saquear Linux - General 24 01-22-2005 09:15 AM
man alsamixer not showing the man page nosaku Slackware 1 12-20-2004 08:52 AM


All times are GMT -5. The time now is 01:35 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration