{"catalog", required_argument, 0, 'c'},
{"type", required_argument, 0, 't'},
{"no-confirm", no_argument, 0, 'y'},
- {"help", no_argument, 0, 'h'}
+ {"help", no_argument, 0, 'h'},
+ {0, 0, 0, 0}
};
specific_options = install_options;
specific_help = " Command options:\n"
static struct option remove_options[] = {
{"type", required_argument, 0, 't'},
{"no-confirm", no_argument, 0, 'y'},
- {"help", no_argument, 0, 'h'}
+ {"help", no_argument, 0, 'h'},
+ {0, 0, 0, 0}
};
specific_options = remove_options;
specific_help = " Command options:\n"
{"disabled", no_argument, 0, 'd'},
{"no-refresh", no_argument, 0, 'n'},
{"repo", required_argument, 0, 'r'},
- {"help", no_argument, 0, 'h'}
+ {"help", no_argument, 0, 'h'},
+ {0, 0, 0, 0}
};
specific_options = service_add_options;
specific_help = "service-add [options] URI [alias]\n"
}
else if (command == "service-list" || command == "sl") {
static struct option service_list_options[] = {
- {"help", no_argument, 0, 'h'}
+ {"help", no_argument, 0, 'h'},
+ {0, 0, 0, 0}
};
specific_options = service_list_options;
specific_help = "service-list\n"
}
else if (command == "service-delete" || command == "sd") {
static struct option service_delete_options[] = {
- {"help", no_argument, 0, 'h'}
+ {"help", no_argument, 0, 'h'},
+ {0, 0, 0, 0}
};
specific_options = service_delete_options;
specific_help = "service-delete [options] <URI|alias>\n"
}
else if (command == "service-rename" || command == "sr") {
static struct option service_rename_options[] = {
- {"help", no_argument, 0, 'h'}
+ {"help", no_argument, 0, 'h'},
+ {0, 0, 0, 0}
};
specific_options = service_rename_options;
specific_help = "service-rename [options] <URI|alias> <new-alias>\n"
}
else if (command == "refresh" || command == "ref") {
static struct option refresh_options[] = {
- {"help", no_argument, 0, 'h'}
+ {"help", no_argument, 0, 'h'},
+ {0, 0, 0, 0}
};
specific_options = refresh_options;
specific_help = _("zypper refresh\n"
else if (command == "list-updates" || command == "lu") {
static struct option list_updates_options[] = {
{"type", required_argument, 0, 't'},
- {"help", no_argument, 0, 'h'}
+ {"help", no_argument, 0, 'h'},
+ {0, 0, 0, 0}
};
specific_options = list_updates_options;
specific_help = "list-updates [options]\n"
static struct option update_options[] = {
{"type", required_argument, 0, 't'},
{"no-confirm", no_argument, 0, 'y'},
- {"help", no_argument, 0, 'h'}
+ {"help", no_argument, 0, 'h'},
+ {0, 0, 0, 0}
};
specific_options = update_options;
specific_help = " Command options:\n"
{"type", required_argument, 0, 't'},
{"sort-by-name", no_argument, 0, 0},
{"sort-by-catalog", no_argument, 0, 0},
- {"help", no_argument, 0, 'h'}
+ {"help", no_argument, 0, 'h'},
+ {0, 0, 0, 0}
};
specific_options = search_options;
specific_help =
}
else if (command == "patch-check" || command == "pchk") {
static struct option patch_check_options[] = {
- {"help", no_argument, 0, 'h'}
+ {"help", no_argument, 0, 'h'},
+ {0, 0, 0, 0}
};
specific_options = patch_check_options;
specific_help = "patch-check\n"
}
else if (command == "patches" || command == "pch") {
static struct option patches_options[] = {
- {"help", no_argument, 0, 'h'}
+ {"help", no_argument, 0, 'h'},
+ {0, 0, 0, 0}
};
specific_options = patches_options;
specific_help = "patches\n"
}
else if (command == "info" || command == "if") {
static struct option info_options[] = {
- {"help", no_argument, 0, 'h'}
+ {"help", no_argument, 0, 'h'},
+ {0, 0, 0, 0}
};
specific_options = info_options;
specific_help =
}
else if (command == "patch-info") {
static struct option patch_info_options[] = {
- {"help", no_argument, 0, 'h'}
+ {"help", no_argument, 0, 'h'},
+ {0, 0, 0, 0}
};
specific_options = patch_info_options;
specific_help =
}
else if (command == "moo") {
static struct option moo_options[] = {
- {"help", no_argument, 0, 'h'}
+ {"help", no_argument, 0, 'h'},
+ {0, 0, 0, 0}
};
specific_options = moo_options;
specific_help =
else {
mark_for_uninstall(kind, *it);
}
-
- solve_and_commit (copts.count("no-confirm"));
}
+
+ solve_and_commit (copts.count("no-confirm"));
return ZYPPER_EXIT_OK;
}