commit: 5a9953b6cab24723a677a8007855d0f8f0f81fc7
Author: Pavlos Ratis <dastergon <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 5 18:35:37 2015 +0000
Commit: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
CommitDate: Mon Jan 5 22:21:53 2015 +0000
URL:
http://sources.gentoo.org/gitweb/?p=proj/gentoo-keys.git;a=commit;h=5a9953b6
py2man: updates for sake of consistency
---
py2man/command.template | 4 +++-
py2man/manpages.py | 4 ++--
py2man/options.py | 2 +-
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 <[email protected]> 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 <[email protected]> email alias.