From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 42061138A1A for ; Mon, 5 Jan 2015 23:12:51 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DDEF0E085A; Mon, 5 Jan 2015 23:12:43 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E2B2FE0853 for ; Mon, 5 Jan 2015 23:12:41 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 005AF3406F9 for ; Mon, 5 Jan 2015 23:12:41 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 51A49EF48 for ; Mon, 5 Jan 2015 23:12:37 +0000 (UTC) From: "Brian Dolbec" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Dolbec" Message-ID: <1420496513.5a9953b6cab24723a677a8007855d0f8f0f81fc7.dolsen@gentoo> Subject: [gentoo-commits] proj/gentoo-keys:master commit in: py2man/ X-VCS-Repository: proj/gentoo-keys X-VCS-Files: py2man/command.template py2man/manpages.py py2man/options.py py2man/sub-command.template X-VCS-Directories: py2man/ X-VCS-Committer: dolsen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: 5a9953b6cab24723a677a8007855d0f8f0f81fc7 X-VCS-Branch: master Date: Mon, 5 Jan 2015 23:12:37 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 38e818d5-38cf-4a65-9cb0-2154ce59bf2c X-Archives-Hash: a335a382d0c6d6d0577312b88a55717e commit: 5a9953b6cab24723a677a8007855d0f8f0f81fc7 Author: Pavlos Ratis gentoo org> AuthorDate: Mon Jan 5 18:35:37 2015 +0000 Commit: Brian Dolbec gentoo 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 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 alias.