diff options
author | Pavlos Ratis <dastergon@gentoo.org> | 2015-01-05 20:35:37 +0200 |
---|---|---|
committer | Brian Dolbec <dolsen@gentoo.org> | 2015-01-05 14:21:53 -0800 |
commit | 5a9953b6cab24723a677a8007855d0f8f0f81fc7 (patch) | |
tree | 6b77a665bd355702e635481007454ae301c2c932 /py2man | |
parent | py2man: tiny updates (diff) | |
download | gentoo-keys-5a9953b6cab24723a677a8007855d0f8f0f81fc7.tar.gz gentoo-keys-5a9953b6cab24723a677a8007855d0f8f0f81fc7.tar.bz2 gentoo-keys-5a9953b6cab24723a677a8007855d0f8f0f81fc7.zip |
py2man: updates for sake of consistency
Diffstat (limited to 'py2man')
-rw-r--r-- | py2man/command.template | 4 | ||||
-rw-r--r-- | py2man/manpages.py | 4 | ||||
-rw-r--r-- | py2man/options.py | 2 | ||||
-rw-r--r-- | py2man/sub-command.template | 4 |
4 files changed, 9 insertions, 5 deletions
diff --git a/py2man/command.template b/py2man/command.template index e2111e3..36c1711 100644 --- a/py2man/command.template +++ b/py2man/command.template @@ -1,9 +1,11 @@ .TH "%(prog)s" "1" "version %(version)s, %(date)s" "GKEYS" "" .SH NAME %(prog)s \- %(desc)s + .SH SYNOPSIS .B %(prog)s [\fB\-h\fR] [\fB\-c\fR \fICONFIG\fR] [\fB\-D\fR \fI{WARNING,INFO,FATAL,NOTSET,WARN,DEBUG,ERROR,CRITICAL}\fR] [\fBSUBCOMMAND] [\fBSUBCOMMAND-OPTION] ... + .SH DESCRIPTION .PP @@ -14,7 +16,7 @@ %(sub-cmds)s .SH REPORTING BUGS -Submit bug reports to http://bugs.gentoo.org. +Submit bug reports to https://bugs.gentoo.org. .br Please assign bug to <gkeys@gentoo.org> email alias. diff --git a/py2man/manpages.py b/py2man/manpages.py index d5828f8..cddd68f 100644 --- a/py2man/manpages.py +++ b/py2man/manpages.py @@ -5,7 +5,7 @@ import os from datetime import datetime -from options import LONG_OPTIONS, SHORT_OPTS +from options import LONG_OPTS, SHORT_OPTS ActionStr = '.BR gkeys-%s (1),' @@ -83,7 +83,7 @@ class ManPage(object): def gen_options(options): _opts = [] for opt in options: - _opts.append(LONG_OPTIONS[opt]) + _opts.append(LONG_OPTS[opt]) return '\n'.join(_opts) diff --git a/py2man/options.py b/py2man/options.py index 1beb132..68134b0 100644 --- a/py2man/options.py +++ b/py2man/options.py @@ -4,7 +4,7 @@ from collections import OrderedDict -LONG_OPTIONS = OrderedDict({ +LONG_OPTS = OrderedDict({ 'help': '''.IP "-h, --help" show this help message and exit''', 'status': '''.IP "-A, --status" diff --git a/py2man/sub-command.template b/py2man/sub-command.template index f15fa0e..0a6c1a8 100644 --- a/py2man/sub-command.template +++ b/py2man/sub-command.template @@ -1,6 +1,7 @@ .TH "%(prog)s-%(action)s" "1" "version %(version)s, %(date)s" "GKEYS" "" .SH NAME %(prog)s %(action)s \- %(desc)s + .SH SYNOPSIS .B %(prog)s [\\fBGLOBAL-OPTIONS\\fR] \\fB%(action)s \\f[-h] %(opts)s @@ -8,6 +9,7 @@ .SH DESCRIPTION .PP %(long_desc)s + .SH OPTIONAL ARGUMENTS .IP "-h, --help" show this help message and exit @@ -17,7 +19,7 @@ show this help message and exit %(example)s .SH REPORTING BUGS -Submit bug reports to http://bugs.gentoo.org. +Submit bug reports to https://bugs.gentoo.org. .br Please assign bug to <gkeys@gentoo.org> email alias. |