Man

Name

help2man - Convert —-help and —-version to man page.

Synopsis

help2man [-h] [-V] [—-print-completion {bash,zsh,tcsh}] [-n NAME] [-s SECTION] [-m MANUAL] [-S SOURCE] [-p INFO_PAGE] [-i INCLUDE] [-o OUTPUT] [—-template {man,markdown}] [—-template-file TEMPLATE_FILE] [—-help-option HELP_OPTION] [—-version-option VERSION_OPTION] [—-no-discard-stderr] executable …

Description

Convert —-help and —-version to man page.

Positional arguments

executable

executable program name

executable program arguments

Options

-h, —-help

show this help message and exit

-V, —-version

show program’s version number and exit

-n NAME, —-name NAME

description for the first paragraph, default: Name

-s SECTION, —-section SECTION

section number for manual page, default: 1

-m MANUAL, —-manual MANUAL

name of manual. default: User Commands

-S SOURCE, —-source SOURCE

source of program (FSF, Debian, …). default:

-p INFO_PAGE, —-info-page INFO_PAGE

name of Texinfo manual, default:

-i INCLUDE, —-include INCLUDE

include material from a file

-o OUTPUT, —-output OUTPUT

send output

—-template {man,markdown}

built-in template name. default: man

—-template-file TEMPLATE_FILE

template file.

—-help-option HELP_OPTION

help option string, default: —-help

—-version-option VERSION_OPTION

version option string, default: —-version

—-no-discard-stderr

include stderr when parsing option output