mirror of
https://github.com/flatpak/flatpak.git
synced 2026-03-24 18:04:54 -04:00
Merge pull request #3203 from wjt/flatpak-remote-ls-app-runtime
builtins: hide runtimes with [list|remote-ls] --app-runtime
This commit is contained in:
@@ -440,7 +440,7 @@ flatpak_builtin_list (int argc, char **argv, GCancellable *cancellable, GError *
|
||||
if (!opt_app && !opt_runtime)
|
||||
{
|
||||
opt_app = TRUE;
|
||||
opt_runtime = TRUE;
|
||||
opt_runtime = !opt_app_runtime;
|
||||
}
|
||||
|
||||
/* Default to showing installation if we're listing multiple installations */
|
||||
|
||||
@@ -411,7 +411,10 @@ flatpak_builtin_remote_ls (int argc, char **argv, GCancellable *cancellable, GEr
|
||||
return FALSE;
|
||||
|
||||
if (!opt_app && !opt_runtime)
|
||||
opt_app = opt_runtime = TRUE;
|
||||
{
|
||||
opt_app = TRUE;
|
||||
opt_runtime = !opt_app_runtime;
|
||||
}
|
||||
|
||||
if (argc > 2)
|
||||
return usage_error (context, _("Too many arguments"), error);
|
||||
|
||||
Reference in New Issue
Block a user