summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorPhaedrus Leeds <mwleeds@protonmail.com>2022-07-26 08:12:56 -0500
committerAlexander Larsson <alexander.larsson@gmail.com>2022-08-16 10:50:29 +0200
commitff8490a91e3c6d9e8ff146e76a5b30ccaf22fdf0 (patch)
treeef8a6bb338300806e571d0e46bcb332226b7a1e3 /app
parent6540f85511739028c0f8eb496ae64dcc73d40a28 (diff)
downloadflatpak-ff8490a91e3c6d9e8ff146e76a5b30ccaf22fdf0.tar.gz
app: Add -u alias for --user
Save folks a few keystrokes. There is a command which already has a '-u' option, document-export, but it doesn't support --user so there should be no conflict. However '-s' is used by the info command among others, so we can't use that for --system.
Diffstat (limited to 'app')
-rw-r--r--app/flatpak-main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/flatpak-main.c b/app/flatpak-main.c
index 7ffa1be5..56e87f17 100644
--- a/app/flatpak-main.c
+++ b/app/flatpak-main.c
@@ -176,7 +176,7 @@ static GOptionEntry empty_entries[] = {
};
GOptionEntry user_entries[] = {
- { "user", 0, 0, G_OPTION_ARG_NONE, &opt_user, N_("Work on the user installation"), NULL },
+ { "user", 'u', 0, G_OPTION_ARG_NONE, &opt_user, N_("Work on the user installation"), NULL },
{ "system", 0, 0, G_OPTION_ARG_NONE, &opt_system, N_("Work on the system-wide installation (default)"), NULL },
{ "installation", 0, 0, G_OPTION_ARG_STRING_ARRAY, &opt_installations, N_("Work on a non-default system-wide installation"), N_("NAME") },
{ NULL }