From 2c8736777b9d834c3d8f647b52ba52a9166add59 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Tue, 4 Oct 2016 14:13:30 +0300 Subject: [PATCH] Share option for PIO Remote agent --- platformio/commands/remote.py | 2 +- platformio/telemetry.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/platformio/commands/remote.py b/platformio/commands/remote.py index f1c03515..07b0e408 100644 --- a/platformio/commands/remote.py +++ b/platformio/commands/remote.py @@ -42,7 +42,7 @@ def remote_agent(): @remote_agent.command("start", short_help="Start agent") @click.option("-n", "--name") -@click.option("-s", "--share") +@click.option("-s", "--share", metavar="E-MAIL") def remote_agent_start(**kwargs): pioplus_call(sys.argv[1:]) diff --git a/platformio/telemetry.py b/platformio/telemetry.py index 0a8c28f2..535ee5be 100644 --- a/platformio/telemetry.py +++ b/platformio/telemetry.py @@ -111,8 +111,7 @@ class MeasurementProtocol(TelemetryBase): if not args: return cmd_path = args[:1] - if args[0] in ("lib", "platform", "device", "settings", - "remote"): + if args[0] in ("lib", "platform", "device", "settings", "remote"): cmd_path = args[:2] if args[0] == "remote": if len(args) > 2 and args[1] in ("agent", "device"):