[PATCH v2 0/2] cli: Allow true/false parameter for boolean

Subject: [PATCH v2 0/2] cli: Allow true/false parameter for boolean

Date: Sat, 10 Mar 2012 11:05:31 +0000

To: notmuch@notmuchmail.org

Cc:

From: Mark Walters


Hi

Here is a second version of a patch to allow parameters to boolean
options on the command line. This version allows parameters
(=true|false). My first version is at
id:"1331244944-7960-1-git-send-email-markwalters1009@gmail.com". Jani
posted an alternative version there. Jani's version and this one are
quite similar: the key difference is that this version abuses a
notmuch_bool_t by setting it to -1 (to indicate that the parser has
not set this option). This makes the code simpler but is definitely an
abuse. I will discuss this further in replies to Jani's series.

Best wishes

Mark

Mark Walters (2):
  cli: Parsing. Allow true/false parameter for boolean options.
  cli: make --entire-thread=false work for format=json.

 command-line-arguments.c |   34 ++++++++++++++++++++++++++--------
 notmuch-show.c           |   15 +++++++++++++--
 2 files changed, 39 insertions(+), 10 deletions(-)

-- 
1.7.9.1


Thread: