summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2016-05-13 16:23:13 +0200
committerAlexander Larsson <alexl@redhat.com>2016-05-13 16:23:13 +0200
commit4a8a225447139b5df3cf7759f56d5ca7462fc8aa (patch)
tree90cab83fa4482838196068cdbd500d7df017bcc2
parent2875cdead5e52279536a72fdbf898eeb2be2c4db (diff)
downloadxdg-app-4a8a225447139b5df3cf7759f56d5ca7462fc8aa.tar.gz
remote-delete: Actually look at --force flag
-rw-r--r--app/flatpak-builtins-delete-remote.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/flatpak-builtins-delete-remote.c b/app/flatpak-builtins-delete-remote.c
index 53ab9b9..f03b892 100644
--- a/app/flatpak-builtins-delete-remote.c
+++ b/app/flatpak-builtins-delete-remote.c
@@ -32,7 +32,7 @@
static gboolean opt_force;
-static GOptionEntry modify_options[] = {
+static GOptionEntry delete_options[] = {
{ "force", 0, 0, G_OPTION_ARG_NONE, &opt_force, "Remove remote even if in use", },
{ NULL }
};
@@ -47,6 +47,8 @@ flatpak_builtin_delete_remote (int argc, char **argv, GCancellable *cancellable,
context = g_option_context_new ("NAME - Delete a remote repository");
+ g_option_context_add_main_entries (context, delete_options, NULL);
+
if (!flatpak_option_context_parse (context, NULL, &argc, &argv, 0, &dir, cancellable, error))
return FALSE;