From ad5ebc3197b7fbd6ffffda969d5a81d939057bc7 Mon Sep 17 00:00:00 2001 From: Jonathan Weth Date: Tue, 29 Jun 2021 16:29:59 +0200 Subject: Fix click implementation in test client --- test_client.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test_client.py b/test_client.py index deb5252..ee49bae 100755 --- a/test_client.py +++ b/test_client.py @@ -39,7 +39,7 @@ def cli(): @cli.command() -@click.argument("host") +@click.argument("host", type=int) def start(host: int): """Start a session on the RWA.Support.WebApp host with index HOST.""" click.echo(f"Sending D-Bus request 'start': {host}") @@ -48,7 +48,7 @@ def start(host: int): @cli.command() -@click.argument("pid") +@click.argument("pid", type=int) def stop(pid: int): """Stop the session with the pid PID.""" click.echo(f"Sending D-Bus request 'stop' with PID {pid}") @@ -57,7 +57,7 @@ def stop(pid: int): @cli.command() -@click.argument("pid") +@click.argument("pid", type=int) def status(pid: int): """Get the status of the session with the pid PID.""" click.echo(f"Sending D-Bus request 'status' with PID {pid}") @@ -66,7 +66,7 @@ def status(pid: int): @cli.command() -@click.argument("pid") +@click.argument("pid", type=int) def refresh_status(pid: int): """Refresh and get the status of the session with the pid PID.""" click.echo(f"Sending D-Bus request 'refresh_status' with PID {pid}") -- cgit v1.2.3