--- /dev/null
+Return-Path: <david@tethera.net>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by arlo.cworth.org (Postfix) with ESMTP id E89796DE173B\r
+ for <notmuch@notmuchmail.org>; Fri, 10 Apr 2015 17:03:20 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.375\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.375 tagged_above=-999 required=5 tests=[AWL=0.375]\r
+ autolearn=disabled\r
+Received: from arlo.cworth.org ([127.0.0.1])\r
+ by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id 1ir_tc0wu8IY for <notmuch@notmuchmail.org>;\r
+ Fri, 10 Apr 2015 17:03:18 -0700 (PDT)\r
+Received: from mx.xen14.node3324.gplhost.com (gitolite.debian.net\r
+ [87.98.215.224])\r
+ by arlo.cworth.org (Postfix) with ESMTPS id A9E1B6DE15E7\r
+ for <notmuch@notmuchmail.org>; Fri, 10 Apr 2015 17:03:18 -0700 (PDT)\r
+Received: from remotemail by mx.xen14.node3324.gplhost.com with local (Exim\r
+ 4.80) (envelope-from <david@tethera.net>)\r
+ id 1YgisF-0006oY-HO; Sat, 11 Apr 2015 00:02:11 +0000\r
+Received: (nullmailer pid 21856 invoked by uid 1000); Sat, 11 Apr 2015\r
+ 00:01:54 -0000\r
+From: David Bremner <david@tethera.net>\r
+To: guyzmo <guyzmo+notmuch@m0g.net>\r
+Subject: Re: argument parsing refactoring round3\r
+In-Reply-To: <87oamy41nv.fsf@maritornes.cs.unb.ca>\r
+References: <871tjws8w8.fsf@qmul.ac.uk>\r
+ <1428435042-16503-1-git-send-email-david@tethera.net>\r
+ <20150408143147.GD5218@vilya.online.net>\r
+ <87oamy41nv.fsf@maritornes.cs.unb.ca>\r
+User-Agent: Notmuch/0.19+96~g703c8f9 (http://notmuchmail.org) Emacs/24.4.1\r
+ (x86_64-pc-linux-gnu)\r
+Date: Sat, 11 Apr 2015 09:01:54 +0900\r
+Message-ID: <87mw2fwn0t.fsf@maritornes.cs.unb.ca>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\r
+Cc: notmuch@notmuchmail.org\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.18\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sat, 11 Apr 2015 00:03:21 -0000\r
+\r
+David Bremner <david@tethera.net> writes:\r
+\r
+> guyzmo <guyzmo+notmuch@m0g.net> writes:\r
+>\r
+>> I was wondering whether you had considered actually using `docopt` to\r
+>> generate the CLI parser from the output.\r
+\r
+> As it stands, I'm not particularly annoyed with the notmuch argument\r
+> parsing code, so I mainly see negative issues about your proposal.\r
+\r
+On the other hand, I do find the config handling code annoying, so if\r
+people have some ideas about that, I am interested to hear them. There\r
+is now almost 1000 lines of C in notmuch-config.c, and despite some\r
+efforts to streamline things, there is a lot of copying and pasting\r
+every time someone wants to add a configuration option.\r
+\r
+d\r