Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .Dd $Mdocdate: November Fri 28 2014 $
- .Dt CLI2MAN 1 URM
- .Os UNIX
- .Sh NAME
- .Nm cli2man
- .Nd Use the help message of a command to create a manpage.
- .Sh SYNOPSIS
- .Nm
- ( <command> | -i FILE | --stdin ) [options] [--option-section NAME ...] [--info-section NAME ...] [--set-order SECTIONS] [--gzip] ) | ( --print-order [--set-order SECTIONS] ) | ( --version
- .Sh DESCRIPTION
- Use the help message of a command to create a manpage.
- .Sh OPTIONS
- .Bl -tag -width Ds
- .It Fl h , Fl -help
- show this help message and exit
- .It Fl o Ar FILE , Fl -output Ar FILE
- write to file instead of stdout. when FILE is set to "auto" the format is: command.section(.gz)
- .It Fl i Ar FILE , Fl -input Ar FILE
- read CLI-help input from file
- .It Fl -stdin
- read CLI-help input from stdin
- .It Fl -info-section Ar NAME
- parse non-option sections
- .It Fl -option-section Ar NAME
- parse option sections other than "Options:"
- .It Fl m , Fl -open-in-man
- open the output in man
- .It Fl s Ar NUM , Fl -section Ar NUM
- section number for manual page
- .It Fl -volume Ar VOLUME
- volume title for manual page
- .It Fl I Ar FILE , Fl -include Ar FILE
- include material from FILE
- .It Fl -gzip
- compress file output
- .It Fl -set-order Ar SECTIONS
- comma separated list of sections
- .It Fl -print-order
- prints section order default order if non is set by user
- .It Fl v , Fl -version
- display version information
- .El
- .Pp
- .Sh TEST
- .Pp
- .Bl -tag -width Ds
- .It the first item
- Text belonging to the first item
- .It the second item
- Text belonging to the second
- .El
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement