X-Git-Url: https://rtime.felk.cvut.cz/gitweb/notmuch.git/blobdiff_plain/8bb5b6201ec2cb890655fee6ef7e540f401a4c7e..61f0a5b8ee2adf540106a09c5f83fe634da6beb3:/notmuch-show.c diff --git a/notmuch-show.c b/notmuch-show.c index 912999e1..603992a6 100644 --- a/notmuch-show.c +++ b/notmuch-show.c @@ -936,6 +936,8 @@ notmuch_show_command (void *ctx, unused (int argc), unused (char *argv[])) params.cryptoctx = NULL; params.decrypt = 0; + argc--; argv++; /* skip subcommand argument */ + for (i = 0; i < argc && argv[i][0] == '-'; i++) { if (strcmp (argv[i], "--") == 0) { i++;