From: Aisha Tammy <openbsd@aisha.cc>
To: discuss@mandoc.bsd.lv
Subject: Re: Allowing "?" as a flag in mdoc
Date: Sun, 24 Jan 2021 12:04:06 -0500 [thread overview]
Message-ID: <2af5e0f0-f58f-1e9f-d01f-a34a630de62b@aisha.cc> (raw)
In-Reply-To: <YA2oB9UL4iT4iopI@gmail.com>
On 1/24/21 12:01 PM, Raf Czlonka wrote:
> 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
>
Thanks a lot!
Aisha
> Regards,
>
> Raf
> --
> To unsubscribe send an email to discuss+unsubscribe@mandoc.bsd.lv
>
--
To unsubscribe send an email to discuss+unsubscribe@mandoc.bsd.lv
next prev parent reply other threads:[~2021-01-24 17:04 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
2021-01-24 17:04 ` Aisha Tammy [this message]
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=2af5e0f0-f58f-1e9f-d01f-a34a630de62b@aisha.cc \
--to=openbsd@aisha.cc \
--cc=discuss@mandoc.bsd.lv \
/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).