LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   How to make program man page in linux (http://www.linuxquestions.org/questions/linux-general-1/how-to-make-program-man-page-in-linux-4175448199/)

9gagarmy 02-01-2013 01:05 PM

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.:)

TB0ne 02-01-2013 01:13 PM

Quote:

Originally Posted by 9gagarmy (Post 4882438)
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.


All times are GMT -5. The time now is 11:37 PM.