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 cKL1OA0cp17dWAAA0tVLHw (envelope-from ) for ; Mon, 27 Apr 2020 17:53:17 +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 gCjlEhYcp14gDQAAbx9fmQ (envelope-from ) for ; Mon, 27 Apr 2020 17:53:26 +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 8035A941E01 for ; Mon, 27 Apr 2020 17:53:24 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 911C46DE0F3B; Mon, 27 Apr 2020 10:53:17 -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 CmZ7pZ6Md7hp; Mon, 27 Apr 2020 10:53:17 -0700 (PDT) Received: from arlo.cworth.org (localhost [IPv6:::1]) by arlo.cworth.org (Postfix) with ESMTP id C2F826DE0F33; Mon, 27 Apr 2020 10:53:15 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 6C45A6DE0F33 for ; Mon, 27 Apr 2020 10:53:14 -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 2kuw2B8Dk-BE for ; Mon, 27 Apr 2020 10:53:12 -0700 (PDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id 76A016DE0F28 for ; Mon, 27 Apr 2020 10:53:12 -0700 (PDT) Received: from remotemail by fethera.tethera.net with local (Exim 4.92) (envelope-from ) id 1jT7wL-00040m-JF; Mon, 27 Apr 2020 13:53:09 -0400 Received: (nullmailer pid 3777474 invoked by uid 1000); Mon, 27 Apr 2020 17:53:07 -0000 From: David Bremner To: Ciprian Dorin Craciun , notmuch@notmuchmail.org Subject: Re: Inconsistencies in handling command flags: `--flag=value` different than `--flag value` In-Reply-To: References: Date: Mon, 27 Apr 2020 14:53:07 -0300 Message-ID: <87imhk95oc.fsf@tethera.net> MIME-Version: 1.0 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: -1.01 Authentication-Results: aspmx1.migadu.com; dkim=none; 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 [-1.01 / 13.00]; GENERIC_REPUTATION(0.00)[-0.46233901400917]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+a:c]; IP_REPUTATION_HAM(0.00)[asn: 27017(-0.18), country: US(-0.00), ip: 50.126.95.6(-0.46)]; DWL_DNSWL_FAIL(0.00)[50.126.95.6:server fail]; MX_GOOD(-0.50)[cached: notmuchmail.org]; RCPT_COUNT_TWO(0.00)[2]; MAILLIST(-0.20)[mailman]; FREEMAIL_TO(0.00)[gmail.com,notmuchmail.org]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:27017, ipnet:50.126.64.0/18, country:US]; MID_RHS_MATCH_FROM(0.00)[]; FROM_NEQ_ENVFROM(0.00)[david@tethera.net,notmuch-bounces@notmuchmail.org]; ARC_NA(0.00)[]; URIBL_BLOCKED(0.00)[notmuchmail.org:email,volution.ro:email]; FROM_HAS_DN(0.00)[]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[notmuch@notmuchmail.org]; HAS_LIST_UNSUB(-0.01)[]; DMARC_NA(0.00)[tethera.net]; DNSWL_BLOCKED(0.00)[50.126.95.6:from]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_SEVEN(0.00)[8]; FORGED_SENDER_MAILLIST(0.00)[] X-TUID: +yeAQcfiiXR/ Ciprian Dorin Craciun writes: > [Again sorry for double reporting. BTW, where should I search for > previous bugs? I've currently tried the mailing list archive.] Another option is https://nmbug.notmuchmail.org/status This is just pointers into the mailing archive, but triaged. > > Trying to play with `notmuch` from a wrapper, I've stumbled upon the > following command line flags handling bug: > > ~~~~ > notmuch show --format json --entire-thread true --body false -- > 'ciprian@volution.ro' > notmuch show --format json --entire-thread true --body=false -- > 'ciprian@volution.ro' 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. So what you are seeing is a side effect of "--entire-thread true" not being supported syntax. You can see what's happening with NOTMUCH_DEBUG_QUERY=t notmuch show --format json --entire-thread true djkldsfjkl the "true" is considered the first search term. In your example you could just delete the "true" to switch on the option.