Skip to content

Commit

Permalink
cli: add lockdown unpair [hostid] argument
Browse files Browse the repository at this point in the history
  • Loading branch information
doronz88 committed Jul 6, 2023
1 parent 31704b7 commit 81379d8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pymobiledevice3/cli/lockdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,10 @@ def lockdown_remove(lockdown: LockdownClient, domain, key, color):


@lockdown_group.command('unpair', cls=CommandWithoutAutopair)
def lockdown_unpair(lockdown: LockdownClient):
@click.argument('hostid', required=False)
def lockdown_unpair(lockdown: LockdownClient, hostid: str = None):
""" unpair from connected device """
lockdown.unpair()
lockdown.unpair(host_id=hostid)


@lockdown_group.command('pair', cls=CommandWithoutAutopair)
Expand Down

0 comments on commit 81379d8

Please sign in to comment.