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=1.4 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.4 Received: (qmail 25015 invoked from network); 24 Jan 2021 17:10:19 -0000 Received: from bsd.lv (HELO mandoc.bsd.lv) (66.111.2.12) by inbox.vuxu.org with ESMTPUTF8; 24 Jan 2021 17:10:19 -0000 Received: from fantadrom.bsd.lv (localhost [127.0.0.1]) by mandoc.bsd.lv (OpenSMTPD) with ESMTP id 2c119773 for ; Sun, 24 Jan 2021 12:10:18 -0500 (EST) Received: from mail-ej1-f51.google.com (mail-ej1-f51.google.com [209.85.218.51]) by mandoc.bsd.lv (OpenSMTPD) with ESMTP id d9d35914 for ; Sun, 24 Jan 2021 12:10:13 -0500 (EST) Received: by mail-ej1-f51.google.com with SMTP id w1so14597995ejf.11 for ; Sun, 24 Jan 2021 09:10:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=M/VP4nuent2e4/5h/xg6TEmIcxnP+M+9fXvKOOLmjiE=; b=LCNYbC41VE4bIUVjO6rwZaKEdfqS3DIdrdRCdizx+V4V4OwFWDC5LGbKeiJzFvgire cIvFMnIuS4R4HSDhNnYoHv0CKM8X+T9eyIyN48YF+WUt8Gs0ERx7ovqj8x8Uo7sjj7IE fpUZEvN+bJ2iVD/kPObunk2tol7759YgvIqKycTqCVZWvOCSFczRJFn9NcyBBKZUgu2Y qOmiMh71wv5tB06ddxnNnKdKWpSW7x1T9z+EwSyy6rJQmLn4V99f0clSAPBf+Mu5UuMe AaQnRUDzBmRJr8YlfSJtV8Co2IU3/3evi7GG/YUfnFJCeithtPu9u+FC5edVOMeXQS+S w8LA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=M/VP4nuent2e4/5h/xg6TEmIcxnP+M+9fXvKOOLmjiE=; b=ecROAZ1xCMlljdJa8tpTolkApZOGEZBm0DMnXBKPzNGBArzPkvTgcxO/EbUYSFkxFZ xFw0i4Dnt1D8yQZhRbfDdB0EGbemHIYu2Pe+wjoojGPHhuuudWaYO6xpePc6vzK/B7CI nlhkC8qgA7kec5eoDr7LIEy8ex87H3ivq5HQpuqN/jvgfd8pHgx/InUaaFPdcTAQKMz9 LNBwq6UbJQNq8CLCrfhl3HeSZhzvPazOZiYksWudNS4540m4RbrP9ThPcGxJcdphIL4Q RaUOnC1tYtHQheq2vtbKSxl61s0szCgqhdODgfus9I2ujdf5G09+69i0Wstm9GGT99cs pXRA== X-Gm-Message-State: AOAM533JMQVKFGFVnqjEaObMN/FZwbnvNCvtisKjOn0L6RVoKHN7V+Eu AK845xz/OHgXzhSdJr8/kBVzSBkgm1s= X-Google-Smtp-Source: ABdhPJytGKVIcHktHplKvOxUQWk8/Z/QEamuRqVRYQtH63j4CMDGeMNYfGAtknHVfGgHieW9L1j3rQ== X-Received: by 2002:a17:906:1b0d:: with SMTP id o13mr1967051ejg.232.1611508212532; Sun, 24 Jan 2021 09:10:12 -0800 (PST) Received: from gmail.com (cpc92314-cmbg19-2-0-cust515.5-4.cable.virginm.net. [82.11.186.4]) by smtp.gmail.com with ESMTPSA id l13sm8219980edq.37.2021.01.24.09.10.11 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Sun, 24 Jan 2021 09:10:11 -0800 (PST) Date: Sun, 24 Jan 2021 17:10:10 +0000 From: Raf Czlonka To: Aisha Tammy Cc: discuss@mandoc.bsd.lv Subject: Re: Allowing "?" as a flag in mdoc Message-ID: References: <00b26605-75e1-b872-f754-22edc135f739@aisha.cc> <2af5e0f0-f58f-1e9f-d01f-a34a630de62b@aisha.cc> X-Mailinglist: mandoc-discuss Reply-To: discuss@mandoc.bsd.lv MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <2af5e0f0-f58f-1e9f-d01f-a34a630de62b@aisha.cc> 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