From: "Arthur Zamarin" <arthurzam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/pkgcore/snakeoil:master commit in: src/snakeoil/dist/
Date: Fri, 9 Dec 2022 13:30:50 +0000 (UTC) [thread overview]
Message-ID: <1670592632.3e9c92ef1ea53b15974c730e5709ccb08a309dea.arthurzam@gentoo> (raw)
commit: 3e9c92ef1ea53b15974c730e5709ccb08a309dea
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Fri Dec 9 13:30:32 2022 +0000
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Fri Dec 9 13:30:32 2022 +0000
URL: https://gitweb.gentoo.org/proj/pkgcore/snakeoil.git/commit/?id=3e9c92ef
generate_man_rsts: better formatting for options
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
src/snakeoil/dist/generate_man_rsts.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/snakeoil/dist/generate_man_rsts.py b/src/snakeoil/dist/generate_man_rsts.py
index 6c482211..ca20b360 100644
--- a/src/snakeoil/dist/generate_man_rsts.py
+++ b/src/snakeoil/dist/generate_man_rsts.py
@@ -34,6 +34,10 @@ class RawTextFormatter(argparse.RawTextHelpFormatter):
action.help = '\n' + action.help.strip()
return super()._format_action(action)
+ def _format_action_invocation(self, action):
+ text = super()._format_action_invocation(action)
+ return f':option:`{text}`'
+
class ManConverter:
"""Convert argparse help docs into rST man pages."""
next reply other threads:[~2022-12-09 13:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-09 13:30 Arthur Zamarin [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-01-26 19:17 [gentoo-commits] proj/pkgcore/snakeoil:master commit in: src/snakeoil/dist/ Arthur Zamarin
2023-03-24 11:08 Arthur Zamarin
2022-12-09 13:30 Arthur Zamarin
2022-12-09 11:51 Arthur Zamarin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1670592632.3e9c92ef1ea53b15974c730e5709ccb08a309dea.arthurzam@gentoo \
--to=arthurzam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox