discuss@mandoc.bsd.lv
 help / color / mirror / Atom feed
From: Raf Czlonka <rczlonka@gmail.com>
To: Aisha Tammy <openbsd@aisha.cc>
Cc: discuss@mandoc.bsd.lv
Subject: Re: Allowing "?" as a flag in mdoc
Date: Sun, 24 Jan 2021 17:01:59 +0000	[thread overview]
Message-ID: <YA2oB9UL4iT4iopI@gmail.com> (raw)
In-Reply-To: <00b26605-75e1-b872-f754-22edc135f739@aisha.cc>

On Sun, Jan 24, 2021 at 03:39:19PM GMT, Aisha Tammy wrote:
> Hi,
>   I'm trying to create a manpage where the command takes a flag "?"
> The command would (to display help):
>   module -?
> 
> For this I created in module.1:
> 
> .Bl -tag -width Ds -compact
> .It Fl h , ? , H , -help
> Show the help message.
> .El
> 
> But the output of this looks:
> 
>      -h,?, -H, --help
>              Show the help message.
> 
> Without the - before ?
> 
> Can anyone tell how I can display a -? before the flag?
> 
> Thanks,
> Aisha

Hi Aisha,

Prepend it with zero-width space ('\&').[0]

[0] https://man.openbsd.org/mdoc.7#Delimiters

Regards,

Raf
--
 To unsubscribe send an email to discuss+unsubscribe@mandoc.bsd.lv


  parent reply	other threads:[~2021-01-24 17:02 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-24 15:39 Aisha Tammy
2021-01-24 15:49 ` Aisha Tammy
2021-01-24 17:01 ` Raf Czlonka [this message]
2021-01-24 17:04   ` Aisha Tammy
2021-01-24 17:10     ` Raf Czlonka
2021-01-24 17:36       ` Aisha Tammy

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=YA2oB9UL4iT4iopI@gmail.com \
    --to=rczlonka@gmail.com \
    --cc=discuss@mandoc.bsd.lv \
    --cc=openbsd@aisha.cc \
    /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;
as well as URLs for NNTP newsgroup(s).