config: Default to --list

When no option is specified, just do the reasonable thing.

Closes: #2203
Approved by: alexlarsson
This commit is contained in:
Matthias Clasen
2018-10-06 16:17:56 -04:00
committed by Atomic Bot
parent 3a96ac4d71
commit c269460ef9

View File

@@ -212,6 +212,9 @@ flatpak_builtin_config (int argc, char **argv, GCancellable *cancellable, GError
dir = g_ptr_array_index (dirs, 0);
if (!opt_get && !opt_set && !opt_unset && !opt_list)
opt_list = TRUE;
if (opt_get)
return get_config (argc, argv, dir, cancellable, error);
else if (opt_set)