Note that the option does not do anything yet. --- notmuch-dump.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/notmuch-dump.c b/notmuch-dump.c index 8a8d6ec..2a6daef 100644 --- a/notmuch-dump.c +++ b/notmuch-dump.c @@ -43,10 +43,13 @@ notmuch_dump_command (unused (void *ctx), int argc, char *argv[]) return 1; notmuch_opt_desc_t options[] = { + { "format", 'f', NOTMUCH_OPT_KEYWORD, + (notmuch_keyword_t []){ { "sup", 's' }, { "path", 'p' }, {0, 0} } }, { 0, 0, 0, 0 } }; notmuch_opt_t result; + int output_format='s'; int opt_index; notmuch_bool_t more_args=TRUE; @@ -55,6 +58,9 @@ notmuch_dump_command (unused (void *ctx), int argc, char *argv[]) more_args=parse_argument (argv[0], argv[opt_index], options, &result); switch (result.arg_id) { + case 'f': + output_format=result.keyword_id; + break; case '?': return 1; break; -- 1.7.5.4