Share option for PIO Remote agent

This commit is contained in:
Ivan Kravets
2016-10-04 14:13:30 +03:00
parent 09fc30e777
commit 2c8736777b
2 changed files with 2 additions and 3 deletions

View File

@ -42,7 +42,7 @@ def remote_agent():
@remote_agent.command("start", short_help="Start agent") @remote_agent.command("start", short_help="Start agent")
@click.option("-n", "--name") @click.option("-n", "--name")
@click.option("-s", "--share") @click.option("-s", "--share", metavar="E-MAIL")
def remote_agent_start(**kwargs): def remote_agent_start(**kwargs):
pioplus_call(sys.argv[1:]) pioplus_call(sys.argv[1:])

View File

@ -111,8 +111,7 @@ class MeasurementProtocol(TelemetryBase):
if not args: if not args:
return return
cmd_path = args[:1] cmd_path = args[:1]
if args[0] in ("lib", "platform", "device", "settings", if args[0] in ("lib", "platform", "device", "settings", "remote"):
"remote"):
cmd_path = args[:2] cmd_path = args[:2]
if args[0] == "remote": if args[0] == "remote":
if len(args) > 2 and args[1] in ("agent", "device"): if len(args) > 2 and args[1] in ("agent", "device"):