diff options
| author | Daniel Thompson <daniel@redfelineninja.org.uk> | 2020-03-08 10:16:49 (GMT) |
|---|---|---|
| committer | Daniel Thompson <daniel@redfelineninja.org.uk> | 2020-03-08 10:16:49 (GMT) |
| commit | 753a1e68f114772cd0fce765c7ec4770c8e34036 (patch) | |
| tree | be6821760a44f48a4ec97229ba20879cc7c93d5f /tools | |
| parent | 138425f4d42bbe22ab389139916812384aedb972 (diff) | |
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.
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/wasptool | 10 |
1 files 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) |
