From 753a1e68f114772cd0fce765c7ec4770c8e34036 Mon Sep 17 00:00:00 2001 From: Daniel Thompson Date: Sun, 8 Mar 2020 10:16:49 +0000 Subject: [PATCH] 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. --- tools/wasptool | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/wasptool b/tools/wasptool index 62ebaa5..099e802 100755 --- a/tools/wasptool +++ b/tools/wasptool @@ -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)