From: Karel Zak <kzak@redhat.com>
To: kerolasa@gmail.com
Cc: Benno Schulenberg <bensberg@justemail.net>,
util-linux <util-linux@vger.kernel.org>
Subject: Re: man-pages and usage() howto
Date: Mon, 22 Aug 2011 10:16:54 +0200 [thread overview]
Message-ID: <20110822081654.GH699@nb.net.home> (raw)
In-Reply-To: <CAG27Bk0m45JFtP2MNz27tgJ=-f5XZDHUtd1C9O4X0ALO52-BVA@mail.gmail.com>
On Sat, Aug 20, 2011 at 09:08:08PM +0200, Sami Kerola wrote:
> On Sat, Aug 20, 2011 at 11:10, Benno Schulenberg <bensberg@justemail.net> wrote:
> > On Wed, 17 Aug 2011 15:07 +0200, "Sami Kerola" <kerolasa@iki.fi> wrote:
> >> On Tue, Aug 16, 2011 at 12:39, Karel Zak <kzak@redhat.com> wrote:
> >>> It would be also nice to sync man pages with usage() format.
> >
> > Do you mean that you want to use "--option <argument>" also in the
> > man pages, Karel? Or do we stick there to italics for arguments?
> > (Which translates to underlining on terminals.)
I mean that we need to use the lowercase for the arguments in usage()
as well as in man pages.
> IMHO the following looks quite ok, and not too different to
> usage().
>
> .TP
> \fB\-n\fR, \fB\-\-no\-argument\fR
> This option does not use argument.
> .TP
> \fB\-o\fR, \fB\-\-optional\fR[=<\fIarg\fR>]
> This option uses optional argument.
> .TP
> \fB\-r\fR, \fB\-\-required\fR <\fIarg\fR>
> This option requires an argument.
>
> Comments?
I have no strong opinion about it. Benno is probably right that
italics for the arguments is enough.
We already use option arguments without diamond brackets in our man
pages, so let's continue with this convention to minimize number of
changes in the man pages ;-)
Karel
--
Karel Zak <kzak@redhat.com>
http://karelzak.blogspot.com
next prev parent reply other threads:[~2011-08-22 8:17 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-15 14:19 man-pages and usage() howto Karel Zak
2011-08-15 19:12 ` Sami Kerola
2011-08-16 9:03 ` Benno Schulenberg
2011-08-16 10:46 ` Karel Zak
2011-08-17 13:07 ` Sami Kerola
2011-08-20 9:10 ` Benno Schulenberg
2011-08-20 19:08 ` Sami Kerola
2011-08-21 10:56 ` Sami Kerola
2011-08-22 8:16 ` Karel Zak [this message]
2011-08-22 18:53 ` Sami Kerola
2011-08-22 20:38 ` Benno Schulenberg
2011-08-23 8:15 ` Sami Kerola
2011-08-23 18:55 ` Benno Schulenberg
2011-08-23 19:34 ` Sami Kerola
2011-08-16 10:39 ` Karel Zak
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=20110822081654.GH699@nb.net.home \
--to=kzak@redhat.com \
--cc=bensberg@justemail.net \
--cc=kerolasa@gmail.com \
--cc=util-linux@vger.kernel.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