From: David Bremner Date: Thu, 1 Dec 2011 00:27:26 +0000 (-0800) Subject: command-line-arguments.[ch]: new argument parsing framework for notmuch. X-Git-Tag: 0.11_rc1~48 X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=2cf7b27a0c4b4e746e2e40752c55ddb4d54798b2;hp=2cf7b27a0c4b4e746e2e40752c55ddb4d54798b2;p=notmuch command-line-arguments.[ch]: new argument parsing framework for notmuch. 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). The framework here provides positional arguments, simple switches, and --key=value style arguments that can take a value being an integer, a string, or one of a set of keywords. ---