diff --git a/app/flatpak-builtins-info.c b/app/flatpak-builtins-info.c index 37d43221..e9286b01 100644 --- a/app/flatpak-builtins-info.c +++ b/app/flatpak-builtins-info.c @@ -35,8 +35,6 @@ static gboolean opt_user; static gboolean opt_system; -static gboolean opt_runtime; -static gboolean opt_app; static gboolean opt_show_ref; static gboolean opt_show_commit; static gboolean opt_show_origin; @@ -48,8 +46,6 @@ static GOptionEntry options[] = { { "user", 0, 0, G_OPTION_ARG_NONE, &opt_user, N_("Show user installations"), NULL }, { "system", 0, 0, G_OPTION_ARG_NONE, &opt_system, N_("Show system-wide installations"), NULL }, { "installation", 0, 0, G_OPTION_ARG_STRING_ARRAY, &opt_installations, N_("Show specific system-wide installations"), NULL }, - { "runtime", 0, 0, G_OPTION_ARG_NONE, &opt_runtime, N_("List installed runtimes"), NULL }, - { "app", 0, 0, G_OPTION_ARG_NONE, &opt_app, N_("List installed applications"), NULL }, { "show-ref", 'r', 0, G_OPTION_ARG_NONE, &opt_show_ref, N_("Show ref"), NULL }, { "show-commit", 'c', 0, G_OPTION_ARG_NONE, &opt_show_commit, N_("Show commit"), NULL }, { "show-origin", 'o', 0, G_OPTION_ARG_NONE, &opt_show_origin, N_("Show origin"), NULL }, @@ -97,7 +93,7 @@ flatpak_builtin_info (int argc, char **argv, GCancellable *cancellable, GError * if (argc > 3) return usage_error (context, _("Too many arguments"), error); - kinds = flatpak_kinds_from_bools (opt_app, opt_runtime); + kinds = FLATPAK_KINDS_APP | FLATPAK_KINDS_RUNTIME; if (!opt_user && !opt_system && opt_installations == NULL) search_all = TRUE; @@ -160,7 +156,7 @@ flatpak_complete_info (FlatpakCompletion *completion) if (!flatpak_option_context_parse (context, options, &completion->argc, &completion->argv, FLATPAK_BUILTIN_FLAG_NO_DIR, NULL, NULL, NULL)) return FALSE; - kinds = flatpak_kinds_from_bools (opt_app, opt_runtime); + kinds = FLATPAK_KINDS_APP | FLATPAK_KINDS_RUNTIME; if (!opt_user && !opt_system && opt_installations == NULL) search_all = TRUE; diff --git a/doc/flatpak-info.xml b/doc/flatpak-info.xml index 688167ab..e06330c6 100644 --- a/doc/flatpak-info.xml +++ b/doc/flatpak-info.xml @@ -48,10 +48,6 @@ are queried. Use the --user, --system or --installation options to change this. - - By default this queries the installed apps and runtimes, but you can - limit this by using the --app or --runtime option. - @@ -97,22 +93,6 @@ - - - - - Query for applications. - - - - - - - - Query for runtimes. - - -