[RFC Patch v2 1/3] notmuch-opts.[ch]: new argument parsing framework for notmuch.

2011-12-01 Thread David Bremner
From: David Bremner As we noticed when Jani kindly converted things to getopt_long, much of the work in argument parsing in notmuch is due to the the key-value style arguments like --format=(raw|json|text). In this version I implement Austin Clements' suggestion of basing

[RFC Patch v2 1/3] notmuch-opts.[ch]: new argument parsing framework for notmuch.

2011-12-01 Thread David Bremner
From: David Bremner brem...@debian.org As we noticed when Jani kindly converted things to getopt_long, much of the work in argument parsing in notmuch is due to the the key-value style arguments like --format=(raw|json|text). In this version I implement Austin Clements' suggestion of basing the