From: Tomi Ollila Date: Tue, 31 May 2016 13:40:46 +0000 (+0300) Subject: Re: [Paul Wise] Bug#825886: notmuch: allow separation of command-line options and... X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=12811328b0069acd2bed08b9f4c0f62ca1d05bac;p=notmuch-archives.git Re: [Paul Wise] Bug#825886: notmuch: allow separation of command-line options and their values: --option foo --- diff --git a/19/75bdd456adabbe0fa816a796f04b44c5daa1c8 b/19/75bdd456adabbe0fa816a796f04b44c5daa1c8 new file mode 100644 index 000000000..1111e96a3 --- /dev/null +++ b/19/75bdd456adabbe0fa816a796f04b44c5daa1c8 @@ -0,0 +1,95 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by arlo.cworth.org (Postfix) with ESMTP id 1B2DF6DE00DA + for ; Tue, 31 May 2016 06:41:17 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: 0.58 +X-Spam-Level: +X-Spam-Status: No, score=0.58 tagged_above=-999 required=5 tests=[AWL=-0.072, + SPF_NEUTRAL=0.652] autolearn=disabled +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 ZLe8HkKYtULF for ; + Tue, 31 May 2016 06:41:08 -0700 (PDT) +Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) + by arlo.cworth.org (Postfix) with ESMTP id DCDB06DE00D3 + for ; Tue, 31 May 2016 06:41:07 -0700 (PDT) +Received: from guru.guru-group.fi (localhost [IPv6:::1]) + by guru.guru-group.fi (Postfix) with ESMTP id 4D72B10005A; + Tue, 31 May 2016 16:40:47 +0300 (EEST) +From: Tomi Ollila +To: , David Bremner , + notmuch@notmuchmail.org +Subject: Re: [Paul Wise] Bug#825886: notmuch: allow separation of command-line + options and their values: --option foo +In-Reply-To: <87k2iah95n.fsf@zancas.localnet> +References: <87k2iah95n.fsf@zancas.localnet> +User-Agent: Notmuch/0.22+32~gd4854c5 (http://notmuchmail.org) Emacs/24.5.1 + (x86_64-unknown-linux-gnu) +X-Face: HhBM'cA~ +MIME-Version: 1.0 +Content-Type: text/plain; charset=utf-8 +Content-Transfer-Encoding: quoted-printable +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.20 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Tue, 31 May 2016 13:41:17 -0000 + +On Tue, May 31 2016, David Bremner wrote: + +> From: Paul Wise +> Subject: Bug#825886: notmuch: allow separation of command-line options an= +d their values: --option foo +> To: Debian Bug Tracking System +> Date: Tue, 31 May 2016 15:41:42 +0800 +> +> [ Unknown signature status ] +> Package: notmuch +> Version: 0.22-1 +> Severity: wishlist +> +> It would be nice if notmuch would allow separation between=C2=A0command-l= +ine=20 +> options and their values so that I could run dump and not get an error. +> +> pabs@chianamo ~ $=C2=A0notmuch dump --gzip --output ~/.../notmuch-tags.gz +> Option "output" needs a string argument. +> Unrecognized option: --output +> pabs@chianamo ~ $ notmuch dump --gzip --output=3D~/.../notmuch-tags.gz +> Bad output file ~/.../notmuch-tags.gz +> +> I don't want to have to manually type my home dir whenever I dump tags, +> which I currently have to do since notmuch requires =3D as a separator. + +As a (temporary?) workaround you can use $HOME in command line. + +> +> pabs@chianamo ~ $ notmuch dump --gzip --output=3D/home/pabs/.../notmuch-t= +ags.gz +> +> Separation of long options and their values is a standard feature of +> programs on Debian so it is surprising this doesn't work by default. +> +> pabs@chianamo ~ $ ls -s --block-size M ~/.../notmuch-tags.gz +> XXXM /home/pabs/.../notmuch-tags.gz +> pabs@chianamo ~ $ ls -s --block-size=3DM ~/.../notmuch-tags.gz +> XXXM /home/pabs/.../notmuch-tags.gz +> +> -- System Information: +> Debian Release: stretch/sid