mirror of
https://github.com/flatpak/flatpak.git
synced 2026-10-21 23:25:33 -04:00
remote-delete: Actually look at --force flag
This commit is contained in:
1 parent
2875cdead5
commit
4a8a225447
1 file changed
+3
-1
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user