1 Return-Path: <markwalters1009@gmail.com>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 684CE431FBC
\r
6 for <notmuch@notmuchmail.org>; Sat, 10 Mar 2012 03:05:42 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=2.7 tagged_above=-999 required=5
\r
12 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
\r
13 FREEMAIL_ENVFROM_END_DIGIT=1, FREEMAIL_FROM=0.001,
\r
14 FREEMAIL_REPLY=2.499, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\r
15 Received: from olra.theworths.org ([127.0.0.1])
\r
16 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
17 with ESMTP id q4uGLC0YAS-Z for <notmuch@notmuchmail.org>;
\r
18 Sat, 10 Mar 2012 03:05:42 -0800 (PST)
\r
19 Received: from mail-wi0-f173.google.com (mail-wi0-f173.google.com
\r
20 [209.85.212.173]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
21 (No client certificate requested)
\r
22 by olra.theworths.org (Postfix) with ESMTPS id B4F7D431FAE
\r
23 for <notmuch@notmuchmail.org>; Sat, 10 Mar 2012 03:05:41 -0800 (PST)
\r
24 Received: by wibhq7 with SMTP id hq7so1254475wib.2
\r
25 for <notmuch@notmuchmail.org>; Sat, 10 Mar 2012 03:05:39 -0800 (PST)
\r
26 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
\r
27 h=from:to:cc:subject:date:message-id:x-mailer;
\r
28 bh=vymqPDPaoLuJLVv6jQsK0eiId4rGrGAv16CUwaQ9YTY=;
\r
29 b=yIuCIw13uKPUYRrdpmWa8dCHSfd+rG1eqs6zQUCZXtFPRs3kQg0D+Cec84S8StUHeU
\r
30 cx0ZxGoYyeGLQYiIonhznOrM8oSFPt1Ip3+yJPz79bqHDAEsrNYEov6dhJIgUpAwMoYE
\r
31 NmBPojz83XrkpfYPZbKts7xueIa1CNLL5Rowxeg2arnDAiVsqOb6mnt8mcj3NjIAuv1A
\r
32 P2vYQQ82GR761jpnRNtVaNNJUK2eO+4sxaPmqk49ToWLzPiKf+rOUunAdKhXkWGfYFVj
\r
33 rCTbTFS0C2uMcIwCBzrCMHbZ+xK7K8ZRhc6KmLAqVa0T+06M7Nnh9v6sHR91MBOaPQAU
\r
35 Received: by 10.180.95.34 with SMTP id dh2mr12287588wib.15.1331377538984;
\r
36 Sat, 10 Mar 2012 03:05:38 -0800 (PST)
\r
37 Received: from localhost (94-192-233-223.zone6.bethere.co.uk.
\r
38 [94.192.233.223]) by mx.google.com with ESMTPS id
\r
39 be4sm24539449wib.8.2012.03.10.03.05.36 (version=TLSv1/SSLv3 cipher=OTHER);
\r
40 Sat, 10 Mar 2012 03:05:37 -0800 (PST)
\r
41 From: Mark Walters <markwalters1009@gmail.com>
\r
42 To: notmuch@notmuchmail.org
\r
43 Subject: [PATCH v2 0/2] cli: Allow true/false parameter for boolean
\r
44 Date: Sat, 10 Mar 2012 11:05:31 +0000
\r
45 Message-Id: <1331377533-30262-1-git-send-email-markwalters1009@gmail.com>
\r
46 X-Mailer: git-send-email 1.7.9.1
\r
47 X-BeenThere: notmuch@notmuchmail.org
\r
48 X-Mailman-Version: 2.1.13
\r
50 List-Id: "Use and development of the notmuch mail system."
\r
51 <notmuch.notmuchmail.org>
\r
52 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
53 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
54 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
55 List-Post: <mailto:notmuch@notmuchmail.org>
\r
56 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
57 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
58 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
59 X-List-Received-Date: Sat, 10 Mar 2012 11:05:42 -0000
\r
63 Here is a second version of a patch to allow parameters to boolean
\r
64 options on the command line. This version allows parameters
\r
65 (=true|false). My first version is at
\r
66 id:"1331244944-7960-1-git-send-email-markwalters1009@gmail.com". Jani
\r
67 posted an alternative version there. Jani's version and this one are
\r
68 quite similar: the key difference is that this version abuses a
\r
69 notmuch_bool_t by setting it to -1 (to indicate that the parser has
\r
70 not set this option). This makes the code simpler but is definitely an
\r
71 abuse. I will discuss this further in replies to Jani's series.
\r
78 cli: Parsing. Allow true/false parameter for boolean options.
\r
79 cli: make --entire-thread=false work for format=json.
\r
81 command-line-arguments.c | 34 ++++++++++++++++++++++++++--------
\r
82 notmuch-show.c | 15 +++++++++++++--
\r
83 2 files changed, 39 insertions(+), 10 deletions(-)
\r