unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH v2 0/2] cli: Allow true/false parameter for boolean  
@ 2012-03-10 11:05 Mark Walters
  2012-03-10 11:05 ` [PATCH 1/2] cli: Parsing. Allow true/false parameter for boolean options Mark Walters
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Mark Walters @ 2012-03-10 11:05 UTC (permalink / raw)
  To: notmuch

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-03-18 12:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-10 11:05 [PATCH v2 0/2] cli: Allow true/false parameter for boolean Mark Walters
2012-03-10 11:05 ` [PATCH 1/2] cli: Parsing. Allow true/false parameter for boolean options Mark Walters
2012-03-18 12:49   ` David Bremner
2012-03-10 11:05 ` [PATCH 2/2] cli: make --entire-thread=false work for format=json Mark Walters
2012-03-14  2:47 ` [PATCH v2 0/2] cli: Allow true/false parameter for boolean Austin Clements

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).