1
0
Fork 0

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:
Daniel Thompson 2020-03-08 10:16:49 +00:00
parent 138425f4d4
commit 753a1e68f1

View file

@ -129,18 +129,18 @@ if __name__ == '__main__':
time.sleep(0.5)
sync(console)
if args.eval:
handle_eval(console, args.eval)
if args.rtc:
handle_rtc(console)
if args.exec:
handle_exec(console, args.exec)
if args.eval:
handle_eval(console, args.eval)
if args.upload:
handle_upload(console, args.upload)
if args.rtc:
handle_rtc(console)
if args.console:
console.close()
os.execl(pynus, pynus)