discuss@mandoc.bsd.lv
 help / color / mirror / Atom feed
From: Aisha Tammy <openbsd@aisha.cc>
To: Raf Czlonka <rczlonka@gmail.com>
Cc: discuss@mandoc.bsd.lv
Subject: Re: Allowing "?" as a flag in mdoc
Date: Sun, 24 Jan 2021 12:36:38 -0500	[thread overview]
Message-ID: <e0a327b2-6b04-3ad7-99c3-4836c7bda712@aisha.cc> (raw)
In-Reply-To: <YA2p8o3BKQdd6q4/@gmail.com>

I am not the one making this package.
This package is https://github.com/TACC/Lmod/
which is an alternative (imo better) implementation of standard
tk environment modules.
It does not provide a nice man page, I'm maintaining this for
Gentoo Linux and decided to create a better man page in mdoc.

Cheers,
Aisha

On 1/24/21 12:10 PM, Raf Czlonka wrote:
> On Sun, Jan 24, 2021 at 05:04:06PM GMT, Aisha Tammy wrote:
>>
>> 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
> 
> Hello,
> 
> Two things, though:
> 
> 1. Not sure whether using a question mark ('?') as a flag is a good idea.
> 
> 2. module(1) is already taken[1] ;^)
> 
> [1] http://modules.sourceforge.net/
> 
> Cheers,
> 
> Raf
> 
--
 To unsubscribe send an email to discuss+unsubscribe@mandoc.bsd.lv


      reply	other threads:[~2021-01-24 17:36 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
2021-01-24 17:10     ` Raf Czlonka
2021-01-24 17:36       ` Aisha Tammy [this message]

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=e0a327b2-6b04-3ad7-99c3-4836c7bda712@aisha.cc \
    --to=openbsd@aisha.cc \
    --cc=discuss@mandoc.bsd.lv \
    --cc=rczlonka@gmail.com \
    /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).