cli: add standard option processing to config, help and setup
authorDavid Bremner <david@tethera.net>
Sun, 5 Apr 2015 20:34:55 +0000 (05:34 +0900)
committerDavid Bremner <david@tethera.net>
Mon, 1 Jun 2015 05:32:54 +0000 (07:32 +0200)
commit447ad6b4984c71881b7f97641c77f0a39b71a991
treefec61c03ae38f2d57a1483fe6aaf9f9ff080ac7d
parent0018a8d787a98f80c665061daa9b0c73839d3666
cli: add standard option processing to config, help and setup

In particular this fixes a recently encountered bug where the
"--config" argument to "notmuch setup" is silently ignored, which the
unpleasant consequence of overwriting the users config file.
notmuch-client.h
notmuch-config.c
notmuch-setup.c
notmuch.c
test/random-corpus.c