<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/command-line-arguments.c, branch feature/wildcard</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=feature%2Fwildcard</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=feature%2Fwildcard'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2021-03-13T12:45:34Z</updated>
<entry>
<title>cli: run uncrustify</title>
<updated>2021-03-13T12:45:34Z</updated>
<author>
<name>uncrustify</name>
<email>david@tethera.net</email>
</author>
<published>2021-03-13T12:45:34Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=eef21c284742fa5ae14d7d352acc3a4dc98821ce'/>
<id>urn:sha1:eef21c284742fa5ae14d7d352acc3a4dc98821ce</id>
<content type='text'>
This is the result of running

     $ uncrustify --replace --config devel/uncrustify.cfg *.c *.h

in the top level source directory

Line breaks were then adjusted manually to keep argc and argv
together.
</content>
</entry>
<entry>
<title>cli: run uncrustify</title>
<updated>2019-06-14T10:41:27Z</updated>
<author>
<name>uncrustify</name>
<email>david@tethera.net</email>
</author>
<published>2019-06-13T10:31:01Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=33382c2b5ba2537952a60ea378feff36961e4713'/>
<id>urn:sha1:33382c2b5ba2537952a60ea378feff36961e4713</id>
<content type='text'>
This is the result of running

     $ uncrustify --replace --config devel/uncrustify.cfg *.c *.h

in the top level source directory
</content>
</entry>
<entry>
<title>CLI: replace some constructs with more uncrustify friendly ones</title>
<updated>2019-06-14T10:41:27Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2019-06-12T22:47:20Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=be8f0ba92a302798b21cf02ef73c4ad783b66cba'/>
<id>urn:sha1:be8f0ba92a302798b21cf02ef73c4ad783b66cba</id>
<content type='text'>
In particular
   - use (bool) instead of !!
   - cuddle the opening parens of function calls
   - add parens in some ternery operators
</content>
</entry>
<entry>
<title>cli: some keyword options can be supplied with no argument</title>
<updated>2017-12-29T20:45:35Z</updated>
<author>
<name>Daniel Kahn Gillmor</name>
<email>dkg@fifthhorseman.net</email>
</author>
<published>2017-12-25T18:42:26Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=0ada2a05c94de72bc2c7c57a790e92b77af37a42'/>
<id>urn:sha1:0ada2a05c94de72bc2c7c57a790e92b77af37a42</id>
<content type='text'>
We might change some notmuch command line tools that used to be
booleans into keyword arguments.

In that case, there are some legacy tools that will expect to be able
to do "notmuch foo --bar" instead of "notmuch foo --bar=baz".

This patch makes it possible to support that older API, while
providing a warning and an encouragement to upgrade.
</content>
</entry>
<entry>
<title>cli: add support for --no- prefixed boolean and keyword flag arguments</title>
<updated>2017-12-13T12:21:13Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2017-10-14T13:16:06Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=39abd3b5226fef99de1adaa2e8f6b1ba8480c5f5'/>
<id>urn:sha1:39abd3b5226fef99de1adaa2e8f6b1ba8480c5f5</id>
<content type='text'>
Add transparent support for negating boolean and keyword flag
arguments using --no-argument style on the command line. That is, if
the option description contains a boolean or a keyword flag argument
named "argument", --no-argument will match and negate it.

For boolean arguments this obviously means the logical NOT. For
keyword flag arguments this means bitwise AND of the bitwise NOT,
i.e. masking out the specified bits instead of OR'ing them in.

For example, you can use --no-exclude instead of --exclude=false in
notmuch show. If we had keyword flag arguments with some flags
defaulting to on, say --include=tags in notmuch dump/restore, this
would allow --no-include=tags to switch that off while not affecting
other flags.

As a curiosity, you should be able to warp your brain using
--no-exclude=true meaning false and --no-exclude=false meaning true if
you wish.

Specifying both "argument" and "no-argument" style arguments in the
same option description should be avoided. In this case, --no-argument
would match whichever is specified first, and --argument would only
match "argument".
</content>
</entry>
<entry>
<title>cli: allow empty strings for notmuch insert --folder argument</title>
<updated>2017-11-08T14:46:44Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2017-10-14T13:15:43Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=733ccfabca350f65a1d0ba1f64792a8a436da273'/>
<id>urn:sha1:733ccfabca350f65a1d0ba1f64792a8a436da273</id>
<content type='text'>
Now that it's easy to add argument specific modifiers in opt
descriptions, add a new .allow_empty field to allow empty strings for
individual string arguments while retaining strict checks
elsewhere. Use this for notmuch insert --folder, where the empty
string means top level folder.
</content>
</entry>
<entry>
<title>cli: convert notmuch_bool_t to stdbool</title>
<updated>2017-10-10T01:24:02Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2017-10-07T08:44:04Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=0f314c0c99befea599a68bea51d759b4133efef6'/>
<id>urn:sha1:0f314c0c99befea599a68bea51d759b4133efef6</id>
<content type='text'>
C99 stdbool turned 18 this year. There really is no reason to use our
own, except in the library interface for backward
compatibility. Convert the cli and test binaries to stdbool.
</content>
</entry>
<entry>
<title>cli: reduce indent in keyword argument processing</title>
<updated>2017-10-05T01:03:52Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2017-10-01T20:53:21Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=288c3660d8798141d86faee30b4394a450dda0ba'/>
<id>urn:sha1:288c3660d8798141d86faee30b4394a450dda0ba</id>
<content type='text'>
Reducing indent makes future changes easier. No functional changes.
</content>
</entry>
<entry>
<title>cli: change while to for in keyword argument processing</title>
<updated>2017-10-05T01:03:21Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2017-10-01T20:53:20Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=4dc3291199055c076b89267c8bf2bdb366c6e635'/>
<id>urn:sha1:4dc3291199055c076b89267c8bf2bdb366c6e635</id>
<content type='text'>
Using a for loop makes it easier to use continue, in preparation for
future changes. No functional changes.
</content>
</entry>
<entry>
<title>cli: refactor boolean argument processing</title>
<updated>2017-10-05T01:03:10Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2017-10-01T20:53:19Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=e70494785541c32989b5c31360e1d9ac57e106ee'/>
<id>urn:sha1:e70494785541c32989b5c31360e1d9ac57e106ee</id>
<content type='text'>
Clean up the control flow to prepare for future changes. No functional
changes.
</content>
</entry>
</feed>
