From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 6H2iMo8ip15NQwAA0tVLHw (envelope-from ) for ; Mon, 27 Apr 2020 18:21:03 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id oElVDJgip16lIgAAbx9fmQ (envelope-from ) for ; Mon, 27 Apr 2020 18:21:12 +0000 Received: from arlo.cworth.org (arlo.cworth.org [50.126.95.6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id F3CF3941ABA for ; Mon, 27 Apr 2020 18:21:08 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 897E76DE0F37; Mon, 27 Apr 2020 11:21:04 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Fn_t_3Tli_9E; Mon, 27 Apr 2020 11:21:03 -0700 (PDT) Received: from arlo.cworth.org (localhost [IPv6:::1]) by arlo.cworth.org (Postfix) with ESMTP id 518596DE0EF2; Mon, 27 Apr 2020 11:21:03 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 1D7996DE0EF2 for ; Mon, 27 Apr 2020 11:21:02 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FX0tvgVjUxJS for ; Mon, 27 Apr 2020 11:21:01 -0700 (PDT) Received: from lahtoruutu.iki.fi (lahtoruutu.iki.fi [212.16.98.55]) by arlo.cworth.org (Postfix) with ESMTPS id B93ED6DE0EDC for ; Mon, 27 Apr 2020 11:21:00 -0700 (PDT) Received: from guru.guru-group.fi (unknown [IPv6:2a02:2380:1:9:5054:ff:feb7:a4bc]) (using TLSv1.2 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: too) by lahtoruutu.iki.fi (Postfix) with ESMTPSA id 121B21B00421; Mon, 27 Apr 2020 21:20:59 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1588011659; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=IGJh2tsFhPlWLIw5ryJ9+iZ65+QXetLrNX9RmJAmXvU=; b=Pal+FO2qfqUCOuhAY4a3Vvq5/O34cClrDllTEvM6JyzvjcjsWHcMuVeTWr1wh+sK8bpHxJ LyEHWjuMLK01uGlSPmfD0oADYyJy7Tbw2MvpND+NXqqQRlJ6zbz69UJTF/MHNz4A8hUbt9 OTF9bOoBs2SYXw4hSNV2sS6fkqWnrSPAQYXdV0sbU7550i8kjjFoN0l8Qn2x4erkWO8Qot btkZD5jytBo/d+rC5c+7Inx+EWci1mtbZo915JKbE2lWt3hIUJMj+x9H+Py56SoPanHtqu /OWjMgb9GyLlgRX4c62rBQhDc01SfmZqOT2XYe5jRy29goNKV3JgGg4QnKG73g== From: Tomi Ollila To: Daniel Kahn Gillmor , David Bremner , Ciprian Dorin Craciun , notmuch@notmuchmail.org Subject: Re: Inconsistencies in handling command flags: `--flag=value` different than `--flag value` In-Reply-To: <87k120x0wh.fsf@fifthhorseman.net> References: <87imhk95oc.fsf@tethera.net> <87k120x0wh.fsf@fifthhorseman.net> User-Agent: Notmuch/0.28.3+84~g41389bb (https://notmuchmail.org) Emacs/25.2.1 (x86_64-unknown-linux-gnu) X-Face: HhBM'cA~ MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1588011659; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=IGJh2tsFhPlWLIw5ryJ9+iZ65+QXetLrNX9RmJAmXvU=; b=APC0+1J4Ku5+TUF5pve7F6VIjayCgly2WKYKMrwoBSW6ygeM3bpx45huaIaI6/x9+wXHkF LfdTlgtf7Ta4jDkAhYc7ohkZoD/SVYNbwQiVxQHf0rm+9fb2+0RoXufkha0LFGpu82SJxE 60W6gBCiihoeo0EWd8KrddH6FBkFC0/UgY5uUJ7KFR9UZ6XBt4tbI6oLFz8FzlotKxbFtw zoKG0LlcdzOsNM6DGik7a+SsIMVhEYTJhlO/3S/vPlYUTC1oOcLR11WWd2M1te6Xe5JhD6 dxgs1SaIgau5MsGOU0TgBsxJbigVCyuf3veJkVimkM8poqzWwIexjc9xynAO0g== ARC-Seal: i=1; s=lahtoruutu; d=iki.fi; t=1588011659; a=rsa-sha256; cv=none; b=mi7TRBv/v4thk838j1aVI3F8ylypjgKhVqIRt5W1WHNo+93qM8UhWvqu9t6fK9jGM4yaAX J+8v/MWmVWmm4y2ti7AYhGEwzYV9KVarHLF+GnOQHWNTO1wNe5exPRWTk9a2G/mlLk6Y6+ NIQTWiC0DY0HawO/Pbf9Zx8u54vllSRX2bMIqV4wyPBGiwtFVz0ov0GnmfJksCJMPKRzF/ /BX5v3a5lHWSPr17drEH0DLAn6Hc7B31Df2LK66q+VwgGunk5V+ifDdjLT6rd/VxvND63M 3ndaRO7Jt2mRrxt0rVQ3JZasu+ltkFEHSZ2gIQs8PpHCjegOifT0UqvyN6tbCg== ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=too smtp.mailfrom=tomi.ollila@iki.fi X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: notmuch-bounces@notmuchmail.org Sender: "notmuch" X-Scanner: scn0 X-Spam-Score: 3.49 Authentication-Results: aspmx1.migadu.com; dkim=fail (body hash did not verify) header.d=iki.fi header.s=lahtoruutu header.b=Pal+FO2q; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 50.126.95.6 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Scan-Result: default: False [3.49 / 13.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; GENERIC_REPUTATION(0.00)[-0.46319319722829]; FORGED_SENDER_MAILLIST(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+a:c]; IP_REPUTATION_HAM(0.00)[asn: 27017(-0.19), country: US(-0.00), ip: 50.126.95.6(-0.46)]; DWL_DNSWL_FAIL(0.00)[50.126.95.6:server fail]; R_DKIM_REJECT(1.00)[iki.fi:s=lahtoruutu]; ARC_REJECT(2.00)[signature check failed: fail, {[1] = sig:iki.fi:reject}]; MX_GOOD(-0.50)[cached: notmuchmail.org]; DKIM_TRACE(0.00)[iki.fi:-]; MAILLIST(-0.20)[mailman]; FREEMAIL_TO(0.00)[fifthhorseman.net,tethera.net,gmail.com,notmuchmail.org]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:27017, ipnet:50.126.64.0/18, country:US]; FROM_NEQ_ENVFROM(0.00)[tomi.ollila@iki.fi,notmuch-bounces@notmuchmail.org]; URIBL_BLOCKED(0.00)[notmuchmail.org:email]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[notmuch@notmuchmail.org]; HAS_LIST_UNSUB(-0.01)[]; DNSWL_BLOCKED(0.00)[50.126.95.6:from]; DMARC_NA(0.00)[iki.fi]; RCVD_COUNT_SEVEN(0.00)[8]; SUSPICIOUS_RECIPS(1.50)[] X-TUID: kZ9GpJfiBjz5 On Mon, Apr 27 2020, Daniel Kahn Gillmor wrote: > On Mon 2020-04-27 14:53:07 -0300, David Bremner wrote: >> Quoting notmuch(1) >> >> OPTION SYNTAX >> All options accepting an argument can be used with '=' >> or ':' as a separator. For the cases where it's not ambiguous >> (in particular excluding boolean options), a space can also be >> used. > > This is a pretty twisty way to say what we mean. Are there other cases > besides boolean options? If there are, perhaps it'd be clearer to say > something like this for the last sentence: > > Except for boolean options and other potential ambiguous cases, a > space can also be used as a separator. > > If there aren't, we could say: > > Except for boolean options (which would be ambiguous), a space can > also be used as a separator. > > Alternately, we could deprecate using whitespace for all options, > produce explicit warnings to stderr when whitespace appears on the next was it so, that originally we did not support whitespace, but David added that in some commit... > release, remove the suggestion to use a whitespace separator from the > documentation, and eventually phase it out entirely in some future > release. Alternatively we could check that next arg is (case-insensitively) (subset of) 'true', 'false', 'yes', 'no', '0', '1', 't', 'nil' (but not tpyoes of these ;) and in that case have that as an option value... ... would that work better for human user who just wants to be fluent on command line -- frontends can then always use = and option values... > --dkg Tomi