codeskyblue / tidevice3

wrapper for pymobiledevice3 to make it more easy to use.
MIT License
176 stars 33 forks source link

t3 app launch app参数格式问题 #5

Closed codematrixer closed 5 months ago

codematrixer commented 5 months ago

启动app带入参数时, 写法比较奇怪,需要这样写: t3 app launch "com.xx.app xx://myprofile" 是否可以改成: t3 app launch com.xx.app xx://myprofile

需要改下@click.argument("arguments", type=click.STRING) 改成@click.argument("arguments", nargs=-1)

codeskyblue commented 5 months ago

这么操作是因为如果这里面包含 -- -之类的字符,会被click当做指令直接给解析了

codeskyblue commented 5 months ago

而且后面还可能需要增加环境变量的传递