.TH BINMAN 1 "2011-10-13" "1.0.0" "Ruby User Manuals" .SH NAME .PP binman \- UNIX man pages for Ruby \fBbin/\fP scripts .SH SYNOPSIS .PP \fBbinman\fP [\fIOPTION\fP]... \fICOMMAND\fP .SH DESCRIPTION .PP \fBbinman\fP \fIhttps://github.com/sunaku/binman\fP produces UNIX man pages for your Ruby \fBbin/\fP scripts. It can extract their leading comment headers (defined below), convert them from .BR markdown (7) into .BR roff (7) using \fBRedcarpet2\fP \fIhttps://github.com/tanoku/redcarpet\fP, and display them using .BR man (1). .SS Leading Comment Headers .PP A leading comment header can be one of the following two things: .nr step 0 1 .IP \n+[step] A contiguous sequence of single-line comments starting at the beginning of the file (after shebang and encoding comments plus optional blank lines) and ending at the first single blank line. .IP \n+[step] First embedded document delimited by \fB=begin\fP and \fB=end\fP lines. .SS Markdown Processing Extensions .PP The following \fBRedcarpet2\fP \fIhttps://github.com/tanoku/redcarpet\fP markdown processing extensions are enabled: . .IP \[bu] 2 autolink .IP \[bu] 2 no_intra_emphasis .IP \[bu] 2 fenced_code_blocks .IP \[bu] 2 space_after_headers .SS Markdown Processing Divergence .PP Although your leading comment headers are written in .BR markdown (7), \fBbinman\fP introduces the following additional conventions to simplify common tasks: .nr step 0 1 .IP \n+[step] Paragraphs beginning with bold/italic and followed by at least one two-space indented line are considered to be definitions. The first line of such a paragraph is the term being defined and the subsequent two-space indented lines are the definition body. .SH OPTIONS .TP \fB-h\fP, \fB--help\fP Display this help manual using .BR man (1). .SH COMMANDS .TP \fBshow\fP [\fIFILE\fP] Use .BR man (1) to display the .BR roff (7) conversion of the leading comment header extracted from the given \fIFILE\fP or STDIN. .TP \fBload\fP [\fIFILE\fP] Print the leading comment header extracted from the given \fIFILE\fP or STDIN. .TP \fBdump\fP [\fIFILE\fP] Print the .BR roff (7) conversion of the leading comment header extracted from the given \fIFILE\fP or STDIN. .TP \fBconv\fP [\fIFILE\fP] Print the .BR roff (7) conversion of the .BR markdown (7) document read from the given \fIFILE\fP or STDIN. .SH SEE ALSO .PP .BR man (1), .BR roff (7), .BR markdown (7)