]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch-compact.c
cli: use designated initializers for opt desc
[notmuch] / notmuch-compact.c
index 855545d735769e1269bd5a08ce6c1e99856bb989..ae464e4805cbfbb5f329a278494006a3273706ab 100644 (file)
@@ -36,10 +36,10 @@ notmuch_compact_command (notmuch_config_t *config, int argc, char *argv[])
     int opt_index;
 
     notmuch_opt_desc_t options[] = {
-       { NOTMUCH_OPT_STRING, &backup_path, "backup", 0, 0 },
-       { NOTMUCH_OPT_BOOLEAN,  &quiet, "quiet", 'q', 0 },
-       { NOTMUCH_OPT_INHERIT, (void *) &notmuch_shared_options, NULL, 0, 0 },
-       { 0, 0, 0, 0, 0}
+       { .opt_string = &backup_path, .name = "backup" },
+       { .opt_bool =  &quiet, .name = "quiet" },
+       { .opt_inherit = notmuch_shared_options },
+       { }
     };
 
     opt_index = parse_arguments (argc, argv, options, 1);