tools: wasptool: Reorder the execution of arguments.
The new ordering is tuned to allow --exec to be used to download new code, --eval to be used to set it up and then --console used to interact with it.
This commit is contained in:
parent
138425f4d4
commit
753a1e68f1
1 changed files with 5 additions and 5 deletions
|
@ -129,18 +129,18 @@ if __name__ == '__main__':
|
||||||
time.sleep(0.5)
|
time.sleep(0.5)
|
||||||
sync(console)
|
sync(console)
|
||||||
|
|
||||||
if args.eval:
|
if args.rtc:
|
||||||
handle_eval(console, args.eval)
|
handle_rtc(console)
|
||||||
|
|
||||||
if args.exec:
|
if args.exec:
|
||||||
handle_exec(console, args.exec)
|
handle_exec(console, args.exec)
|
||||||
|
|
||||||
|
if args.eval:
|
||||||
|
handle_eval(console, args.eval)
|
||||||
|
|
||||||
if args.upload:
|
if args.upload:
|
||||||
handle_upload(console, args.upload)
|
handle_upload(console, args.upload)
|
||||||
|
|
||||||
if args.rtc:
|
|
||||||
handle_rtc(console)
|
|
||||||
|
|
||||||
if args.console:
|
if args.console:
|
||||||
console.close()
|
console.close()
|
||||||
os.execl(pynus, pynus)
|
os.execl(pynus, pynus)
|
||||||
|
|
Loading…
Reference in a new issue