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

Mark Walters markwalters1009 at gmail.com
Sat Mar 10 03:05:31 PST 2012


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 at 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



More information about the notmuch mailing list