[PATCH 4/4] cli: add standard option processing to config and setup

David Bremner david at tethera.net
Sun Apr 5 14:34:52 PDT 2015


David Bremner <david at tethera.net> writes:

> In particular this fixes a recently encountered bug where the
> "--config" argument to "notmuch setup" is silently ignored, which the
> unpleasant consequence of overwriting the users config file.

Urgh. I had a longish cover letter for this series but somehow mashing
buttons with git-send-email caused it to be lost forever. Or maybe it's
en route still. Anyway, here is a quick summary:

- The first two patches are worthwhile just to improve understandability
  IMHO

- The third patch is a bit big for tiny improvement in functionality,
  but it does make it easier to define global arguments, which is
  something I want for the revision-tracking series
  (id:1413181203-1676-1-git-send-email-aclements at csail.mit.edu)

- the last patch fixes an annoying bug where --config is silently
  ignored in

  % notmuch setup --config=foobar

  This could of course be fixed in a way that doesn't depend on patch
  3/4.


More information about the notmuch mailing list