From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, NICE_REPLY_A autolearn=no autolearn_force=no version=3.4.4 Received: (qmail 28241 invoked from network); 24 Jan 2021 17:36:48 -0000 Received: from bsd.lv (HELO mandoc.bsd.lv) (66.111.2.12) by inbox.vuxu.org with ESMTPUTF8; 24 Jan 2021 17:36:48 -0000 Received: from fantadrom.bsd.lv (localhost [127.0.0.1]) by mandoc.bsd.lv (OpenSMTPD) with ESMTP id 30172bdb for ; Sun, 24 Jan 2021 12:36:44 -0500 (EST) Received: from mail.aisha.cc (mail.aisha.cc [108.61.81.40]) by mandoc.bsd.lv (OpenSMTPD) with ESMTP id 63559e6a for ; Sun, 24 Jan 2021 12:36:43 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aisha.cc; s=excisionRSA; t=1611509800; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=cG3H8/OW5YtGz9ANwLB8RZGTBWHt4/v8ls1dkPJN+8Y=; b=gUAW56auhmwTou+Rxm408yo0MTdxy3oYh2XK07ZYtOGlq49NKznokOmFOTGHH/dPsFPxWq vSPbgzvfn2hRO0npCvXdhEfqGPmEaA8CxOzfqJcvVmWHiikuDgpY/WTA9CCeWcYIl3m35G 2XbhhPyFv2Eu41cNT8Jn2l/Zq17Vbw8ayHiT5h8OEKizoISlHbyNUdXmgibK38f/E/L0UF TIEKnzwOQrkR1d9Nwlsm7krUzAS4Mbl3tsp81vtzR9oFqgSrnlOVB42s0OKjJusIiDSUkS LG6R4CFqoKRPNd2t27P/O3tVCeaM7pVa0F9StK0WkSC8SXdTE2nWFGzsHuokDw== Received: from [192.168.1.129] (c-73-215-141-174.hsd1.nj.comcast.net [73.215.141.174]) by mail.aisha.cc (OpenSMTPD) with ESMTPSA id fd4857d7 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO) auth=yes user=aisha@aisha.cc; Sun, 24 Jan 2021 12:36:40 -0500 (EST) To: Raf Czlonka Cc: discuss@mandoc.bsd.lv References: <00b26605-75e1-b872-f754-22edc135f739@aisha.cc> <2af5e0f0-f58f-1e9f-d01f-a34a630de62b@aisha.cc> From: Aisha Tammy Organization: aisha.cc Subject: Re: Allowing "?" as a flag in mdoc Message-ID: Date: Sun, 24 Jan 2021 12:36:38 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.1 X-Mailinglist: mandoc-discuss Reply-To: discuss@mandoc.bsd.lv MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit 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