Skip to content

Commit

Permalink
app: Add -u alias for --user
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mwleeds authored and alexlarsson committed Aug 16, 2022
1 parent 6540f85 commit ff8490a
Show file tree
Hide file tree
Showing 22 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/flatpak-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
1 change: 1 addition & 0 deletions doc/flatpak-config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@
</varlistentry>

<varlistentry>
<term><option>-u</option></term>
<term><option>--user</option></term>

<listitem><para>
Expand Down
1 change: 1 addition & 0 deletions doc/flatpak-create-usb.xml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@
</varlistentry>

<varlistentry>
<term><option>-u</option></term>
<term><option>--user</option></term>

<listitem><para>
Expand Down
1 change: 1 addition & 0 deletions doc/flatpak-history.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
</varlistentry>

<varlistentry>
<term><option>-u</option></term>
<term><option>--user</option></term>

<listitem><para>
Expand Down
1 change: 1 addition & 0 deletions doc/flatpak-info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
</varlistentry>

<varlistentry>
<term><option>-u</option></term>
<term><option>--user</option></term>

<listitem><para>
Expand Down
1 change: 1 addition & 0 deletions doc/flatpak-install.xml
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@
</varlistentry>

<varlistentry>
<term><option>-u</option></term>
<term><option>--user</option></term>

<listitem><para>
Expand Down
1 change: 1 addition & 0 deletions doc/flatpak-list.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
</varlistentry>

<varlistentry>
<term><option>-u</option></term>
<term><option>--user</option></term>

<listitem><para>
Expand Down
1 change: 1 addition & 0 deletions doc/flatpak-make-current.xml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
</varlistentry>

<varlistentry>
<term><option>-u</option></term>
<term><option>--user</option></term>

<listitem><para>
Expand Down
1 change: 1 addition & 0 deletions doc/flatpak-mask.xml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ org.some.App/arm
</varlistentry>

<varlistentry>
<term><option>-u</option></term>
<term><option>--user</option></term>

<listitem><para>
Expand Down
1 change: 1 addition & 0 deletions doc/flatpak-override.xml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
</varlistentry>

<varlistentry>
<term><option>-u</option></term>
<term><option>--user</option></term>

<listitem><para>
Expand Down
1 change: 1 addition & 0 deletions doc/flatpak-pin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ org.some.Runtime/arm
</varlistentry>

<varlistentry>
<term><option>-u</option></term>
<term><option>--user</option></term>

<listitem><para>
Expand Down
1 change: 1 addition & 0 deletions doc/flatpak-remote-add.xml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
</varlistentry>

<varlistentry>
<term><option>-u</option></term>
<term><option>--user</option></term>

<listitem><para>
Expand Down
1 change: 1 addition & 0 deletions doc/flatpak-remote-delete.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
</varlistentry>

<varlistentry>
<term><option>-u</option></term>
<term><option>--user</option></term>

<listitem><para>
Expand Down
1 change: 1 addition & 0 deletions doc/flatpak-remote-info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
</varlistentry>

<varlistentry>
<term><option>-u</option></term>
<term><option>--user</option></term>

<listitem><para>
Expand Down
1 change: 1 addition & 0 deletions doc/flatpak-remote-ls.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
</varlistentry>

<varlistentry>
<term><option>-u</option></term>
<term><option>--user</option></term>

<listitem><para>
Expand Down
1 change: 1 addition & 0 deletions doc/flatpak-remote-modify.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
</varlistentry>

<varlistentry>
<term><option>-u</option></term>
<term><option>--user</option></term>

<listitem><para>
Expand Down
1 change: 1 addition & 0 deletions doc/flatpak-remotes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
</varlistentry>

<varlistentry>
<term><option>-u</option></term>
<term><option>--user</option></term>

<listitem><para>
Expand Down
1 change: 1 addition & 0 deletions doc/flatpak-repair.xml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@
</varlistentry>

<varlistentry>
<term><option>-u</option></term>
<term><option>--user</option></term>

<listitem><para>
Expand Down
1 change: 1 addition & 0 deletions doc/flatpak-run.xml
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@
</varlistentry>

<varlistentry>
<term><option>-u</option></term>
<term><option>--user</option></term>

<listitem><para>
Expand Down
1 change: 1 addition & 0 deletions doc/flatpak-search.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@

<variablelist>
<varlistentry>
<term><option>-u</option></term>
<term><option>--user</option></term>

<listitem><para>
Expand Down
1 change: 1 addition & 0 deletions doc/flatpak-uninstall.xml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@
</varlistentry>

<varlistentry>
<term><option>-u</option></term>
<term><option>--user</option></term>

<listitem><para>
Expand Down
1 change: 1 addition & 0 deletions doc/flatpak-update.xml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@
</varlistentry>

<varlistentry>
<term><option>-u</option></term>
<term><option>--user</option></term>

<listitem><para>
Expand Down

0 comments on commit ff8490a

Please sign in to comment.