unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH 0/9] argument parsing fixes and improvements
@ 2017-09-19 20:39 Jani Nikula
  2017-09-19 20:39 ` [PATCH 1/9] hex-xcode: use notmuch_bool_t for boolean arguments Jani Nikula
                   ` (9 more replies)
  0 siblings, 10 replies; 22+ messages in thread
From: Jani Nikula @ 2017-09-19 20:39 UTC (permalink / raw)
  To: notmuch

I had some other things in mind, but ended up with this prep series
instead... The main thing is patch 6 adding --no-argument style negating
arguments for boolean and keyword flag args. The rest is mostly just
refactoring and tests to make that happen.

BR,
Jani.

Jani Nikula (9):
  hex-xcode: use notmuch_bool_t for boolean arguments
  cli: use notmuch_bool_t for boolean argument in show
  cli: refactor boolean argument processing
  cli: change while to for in keyword argument processing
  cli: reduce indent in keyword argument processing
  cli: add support for --no- prefixed boolean and keyword flag arguments
  cli: use the negating boolean support for new and insert --no-hooks
  test: add boolean argument to arg-test
  test: expand argument parsing sanity checks

 command-line-arguments.c      | 93 ++++++++++++++++++++++++++++---------------
 notmuch-insert.c              |  6 +--
 notmuch-new.c                 |  8 ++--
 notmuch-show.c                |  2 +-
 test/T410-argument-parsing.sh | 40 ++++++++++++++++++-
 test/arg-test.c               |  5 +++
 test/hex-xcode.c              |  2 +-
 7 files changed, 113 insertions(+), 43 deletions(-)

-- 
2.11.0

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

end of thread, other threads:[~2017-10-01 20:57 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-19 20:39 [PATCH 0/9] argument parsing fixes and improvements Jani Nikula
2017-09-19 20:39 ` [PATCH 1/9] hex-xcode: use notmuch_bool_t for boolean arguments Jani Nikula
2017-09-19 20:39 ` [PATCH 2/9] cli: use notmuch_bool_t for boolean argument in show Jani Nikula
2017-09-19 20:39 ` [PATCH 3/9] cli: refactor boolean argument processing Jani Nikula
2017-09-19 20:39 ` [PATCH 4/9] cli: change while to for in keyword " Jani Nikula
2017-09-19 20:39 ` [PATCH 5/9] cli: reduce indent " Jani Nikula
2017-09-19 20:39 ` [PATCH 6/9] cli: add support for --no- prefixed boolean and keyword flag arguments Jani Nikula
2017-09-19 20:39 ` [PATCH 7/9] cli: use the negating boolean support for new and insert --no-hooks Jani Nikula
2017-09-19 20:39 ` [PATCH 8/9] test: add boolean argument to arg-test Jani Nikula
2017-09-19 20:39 ` [PATCH 9/9] test: expand argument parsing sanity checks Jani Nikula
2017-09-19 21:43 ` [PATCH 0/9] argument parsing fixes and improvements Daniel Kahn Gillmor
2017-09-20  9:16   ` Jani Nikula
2017-09-20 13:21     ` Daniel Kahn Gillmor
2017-09-21 17:07       ` Jani Nikula
2017-09-21 18:52         ` Daniel Kahn Gillmor
2017-09-25 11:34         ` David Bremner
2017-09-25 13:02           ` Daniel Kahn Gillmor
2017-09-25 20:57             ` David Bremner
2017-09-30  9:40               ` Jani Nikula
2017-09-30 21:37                 ` Jani Nikula
2017-10-01 11:11                   ` David Bremner
2017-10-01 20:57                     ` Jani Nikula

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).