assert(!err || *err == NULL);
- context = g_option_context_new("- program that creates a repomd (xml-based"
- " rpm metadata) repository from a set of"
- " rpms.");
+ context = g_option_context_new("<directory_to_index>");
+ g_option_context_set_summary(context, "Program that creates a repomd "
+ "(xml-based rpm metadata) repository from a set of rpms.");
g_option_context_add_main_entries(context, cmd_entries, NULL);
group_expert = g_option_group_new("expert",
GError *error = NULL;
GOptionContext *context;
- context = g_option_context_new(": take 2 or more repositories and merge "
- "their metadata into a new repo");
+ context = g_option_context_new("--repo=url --repo=url");
+ g_option_context_set_summary(context, "Take 2 or more repositories and "
+ "merge their metadata into a new repo");
g_option_context_add_main_entries(context, cmd_entries, NULL);
gboolean ret = g_option_context_parse(context, argc, argv, &error);
if (g_slist_length(cmd_options->repo_list) < 2) {
free_options(cmd_options);
- fprintf(stderr, "Usage: %s [options]\n\n"
+ fprintf(stderr, "Usage: %s [OPTION...] --repo=url --repo=url\n\n"
"%s: take 2 or more repositories and merge their "
"metadata into a new repo\n\n",
cr_get_filename(argv[0]), cr_get_filename(argv[0]));
options->new_name = NULL;
GOptionContext *context;
- context = g_option_context_new(": Modify a repository's repomd.xml");
+ context = g_option_context_new("<input metadata> <output repodata>\n"
+ " modifyrepo_c --remove <metadata type> <output repodata>\n"
+ " modifyrepo_c [OPTION...] --batchfile <batch file> <output repodata>");
+ g_option_context_set_summary(context, "Modify a repository's repomd.xml");
g_option_context_add_main_entries(context, cmd_entries, NULL);
gboolean ret = g_option_context_parse(context, argc, argv, err);
g_option_context_free(context);