<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/command-line-arguments.h, branch 0.23.4</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=0.23.4</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=0.23.4'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2014-11-05T22:17:00Z</updated>
<entry>
<title>cli: add support for hierarchical command line option arrays</title>
<updated>2014-11-05T22:17:00Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2014-11-05T00:25:54Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=4387112de00d27e6957ca2b6a268242f0bb5c756'/>
<id>urn:sha1:4387112de00d27e6957ca2b6a268242f0bb5c756</id>
<content type='text'>
NOTMUCH_OPT_INHERIT expects a notmuch_opt_desc_t * pointer in
output_var.

The "Unrecognized option" message was moved out of parse_option() to
not be emitted twice or when parsing a non-inherited option.
</content>
</entry>
<entry>
<title>cli: Add support for parsing keyword-flag arguments</title>
<updated>2014-11-01T07:02:21Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2014-10-31T21:53:56Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=ecc4a9a6441a3b7011d9afb2ca67e9d4ea1fca48'/>
<id>urn:sha1:ecc4a9a6441a3b7011d9afb2ca67e9d4ea1fca48</id>
<content type='text'>
This allows having multiple --foo=bar --foo=baz options on the command
line, with the corresponding values OR'd together.

[Test added by Michal Sojka]
</content>
</entry>
<entry>
<title>command-line-arguments.[ch]: make arrays of keyword descriptors const</title>
<updated>2011-12-13T04:00:44Z</updated>
<author>
<name>David Bremner</name>
<email>bremner@debian.org</email>
</author>
<published>2011-12-13T03:54:24Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=f717d2ece1836c863f9cc02abd1ff2539307cd1d'/>
<id>urn:sha1:f717d2ece1836c863f9cc02abd1ff2539307cd1d</id>
<content type='text'>
It seems like it should never be necessary to modify these arrays after
initialization.
</content>
</entry>
<entry>
<title>command-line-arguments.[ch]: new argument parsing framework for notmuch.</title>
<updated>2011-12-09T00:24:24Z</updated>
<author>
<name>David Bremner</name>
<email>bremner@debian.org</email>
</author>
<published>2011-12-01T00:27:26Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=2cf7b27a0c4b4e746e2e40752c55ddb4d54798b2'/>
<id>urn:sha1:2cf7b27a0c4b4e746e2e40752c55ddb4d54798b2</id>
<content type='text'>
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.
</content>
</entry>
</feed>
