]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch-restore.c
cli: change argument parsing convention for subcommands
[notmuch] / notmuch-restore.c
index e4a5355beb4f2e5fd9e1eb12ef7dd9816d292951..f530bb4ed9388833e91a70cecd321c9daeb521d2 100644 (file)
@@ -44,6 +44,8 @@ notmuch_restore_command (unused (void *ctx), int argc, char *argv[])
 
     synchronize_flags = notmuch_config_get_maildir_synchronize_flags (config);
 
+    argc--; argv++; /* skip subcommand argument */
+
     if (argc) {
        input = fopen (argv[0], "r");
        if (input == NULL) {