]> git.cworth.org Git - obsolete/notmuch-old/commit
cli: convert "notmuch show" to use the new argument parser
authorJani Nikula <jani@nikula.org>
Mon, 6 Feb 2012 19:57:22 +0000 (21:57 +0200)
committerDavid Bremner <bremner@debian.org>
Sun, 12 Feb 2012 16:58:20 +0000 (11:58 -0500)
commit2d09775baf1591e51ef7a8911655f2a5e9651c47
treec152d67d87b62e75a325e5affa7c28844e263cd6
parentc9c5a6f70c8371809f3b079e1aba3de3b4a13f6b
cli: convert "notmuch show" to use the new argument parser

Use the new notmuch argument parser to handle arguments in "notmuch
show". There are three minor functional changes:

1) Also set params.raw = TRUE when defaulting to raw format when part
   is requested but format is not specified. This was a bug, and
   --part=0 without --format=raw did not work previously.

2) Set params.decrypt = FALSE if crypto context creation fails.

3) Only use the parameters for the last --format if specified multiple
   times. Previously this could have resulted in a non-working mixture
   of parameters.

Signed-off-by: Jani Nikula <jani@nikula.org>
notmuch-show.c