Skip to content

Commit

Permalink
add command alias
Browse files Browse the repository at this point in the history
  • Loading branch information
antheas committed Dec 9, 2024
1 parent 9a7b834 commit bb5d939
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/hhd/http/steamos.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

SOCKET_UNIX = "/run/hhd/api"
USAGE = """
hhd.steamos [-h] {steamos-branch-select,steamos-update} [--fallback] [keys ...]
hhd.steamos [-h] {steamos-select-branch,steamos-update} [--fallback] [keys ...]
Handheld Daemon steamos polkit stub
Allows mimicking the polkit behavior of SteamOS to perform updates, etc.
Expand All @@ -14,7 +14,8 @@
use the legacy fallback to update the system.
Commands:
steamos-branch-select: Select a branch that running steamos-update will update to.
steamos-select-branch: Select a branch that running steamos-update will update to.
Aliased to steamos-branch-select. Options are: rel, rc, beta, main, bc, -l, -c.
steamos-update: Perform an update.
"""
Expand Down Expand Up @@ -169,7 +170,7 @@ def main():

opts = [v for v in sys.argv[2:] if v != "--fallback"]
match cmd:
case "steamos-branch-select":
case "steamos-branch-select" | "steamos-select-branch":
v = _select_branch(fallback, opts)
case "steamos-update":
v = _update(fallback, opts)
Expand Down

0 comments on commit bb5d939

Please sign in to comment.