unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [Paul Wise] Bug#825886: notmuch: allow separation of command-line options and their values: --option foo
@ 2016-05-31  9:24 David Bremner
  2016-05-31 13:40 ` Tomi Ollila
  2017-07-16 12:46 ` David Bremner
  0 siblings, 2 replies; 3+ messages in thread
From: David Bremner @ 2016-05-31  9:24 UTC (permalink / raw)
  To: notmuch


[-- Attachment #0: Type: message/rfc822, Size: 9253 bytes --]

[-- Attachment #1.1: Type: text/plain, Size: 2173 bytes --]

Package: notmuch
Version: 0.22-1
Severity: wishlist

It would be nice if notmuch would allow separation between command-line 
options and their values so that I could run dump and not get an error.

pabs@chianamo ~ $ notmuch dump --gzip --output ~/.../notmuch-tags.gz
Option "output" needs a string argument.
Unrecognized option: --output
pabs@chianamo ~ $ notmuch dump --gzip --output=~/.../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 = as a separator.

pabs@chianamo ~ $ notmuch dump --gzip --output=/home/pabs/.../notmuch-tags.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=M ~/.../notmuch-tags.gz
XXXM /home/pabs/.../notmuch-tags.gz

-- System Information:
Debian Release: stretch/sid
  APT prefers testing-debug
  APT policy: (900, 'testing-debug'), (900, 'testing'), (860, 'testing-proposed-updates'), (800, 'unstable-debug'), (800, 'unstable'), (790, 'buildd-unstable'), (700, 'experimental-debug'), (700, 'experimental'), (690, 'buildd-experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.6.0-trunk-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages notmuch depends on:
ii  libc6           2.22-9
ii  libglib2.0-0    2.48.1-1
ii  libgmime-2.6-0  2.6.20-1+b1
ii  libnotmuch4     0.22-1
ii  libtalloc2      2.1.6-1
ii  zlib1g          1:1.2.8.dfsg-2+b1

Versions of packages notmuch recommends:
ii  alot           0.3.6-1
ii  gnupg-agent    2.1.11-7
pn  gpgsm          <none>
ii  notmuch-emacs  0.22-1
ii  notmuch-mutt   0.22-1

notmuch suggests no packages.

-- 
bye,
pabs

https://wiki.debian.org/PaulWise

[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Paul Wise] Bug#825886: notmuch: allow separation of command-line options and their values: --option foo
  2016-05-31  9:24 [Paul Wise] Bug#825886: notmuch: allow separation of command-line options and their values: --option foo David Bremner
@ 2016-05-31 13:40 ` Tomi Ollila
  2017-07-16 12:46 ` David Bremner
  1 sibling, 0 replies; 3+ messages in thread
From: Tomi Ollila @ 2016-05-31 13:40 UTC (permalink / raw)
  To: pabs, David Bremner, notmuch

On Tue, May 31 2016, David Bremner <david@tethera.net> wrote:

> From: Paul Wise <pabs@debian.org>
> Subject: Bug#825886: notmuch: allow separation of command-line options and their values: --option foo
> To: Debian Bug Tracking System <submit@bugs.debian.org>
> 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 command-line 
> options and their values so that I could run dump and not get an error.
>
> pabs@chianamo ~ $ notmuch dump --gzip --output ~/.../notmuch-tags.gz
> Option "output" needs a string argument.
> Unrecognized option: --output
> pabs@chianamo ~ $ notmuch dump --gzip --output=~/.../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 = as a separator.

As a (temporary?) workaround you can use $HOME in command line.

>
> pabs@chianamo ~ $ notmuch dump --gzip --output=/home/pabs/.../notmuch-tags.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=M ~/.../notmuch-tags.gz
> XXXM /home/pabs/.../notmuch-tags.gz
>
> -- System Information:
> Debian Release: stretch/sid

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Paul Wise] Bug#825886: notmuch: allow separation of command-line options and their values: --option foo
  2016-05-31  9:24 [Paul Wise] Bug#825886: notmuch: allow separation of command-line options and their values: --option foo David Bremner
  2016-05-31 13:40 ` Tomi Ollila
@ 2017-07-16 12:46 ` David Bremner
  1 sibling, 0 replies; 3+ messages in thread
From: David Bremner @ 2017-07-16 12:46 UTC (permalink / raw)
  To: notmuch

David Bremner <david@tethera.net> writes:

> From: Paul Wise <pabs@debian.org>
> Subject: Bug#825886: notmuch: allow separation of command-line options and their values: --option foo
> To: Debian Bug Tracking System <submit@bugs.debian.org>
> Date: Tue, 31 May 2016 15:41:42 +0800
>

fixed in master / release

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-07-16 12:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-31  9:24 [Paul Wise] Bug#825886: notmuch: allow separation of command-line options and their values: --option foo David Bremner
2016-05-31 13:40 ` Tomi Ollila
2017-07-16 12:46 ` David Bremner

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).