diff options
author | Jim Mussared <jim.mussared@gmail.com> | 2021-08-25 11:06:25 +1000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2021-08-25 15:36:00 +1000 |
commit | 2a290bbfe18929fdd00e24d937d9dfc6530eb874 (patch) | |
tree | 2e0ad9d35da807a78828cc7e84f5b025f61fcf58 /tools/pyboard.py | |
parent | 2296df0a327150f39ef5a915bf828daac3cd4658 (diff) |
tools/pyboard.py: Move --no-exclusive/--soft-reset out of mutex group.
The --no-exclusive flag was accidentally added to the mutex group in
178198a01df51b5f4c5ef9f38ab2fb8f6269d5f4.
The --soft-reset flag was accidentally added to the mutex group in
41adf178309759d5965c15972f04987a2635314c.
These flags can be specified independently to --[no-]follow so should not
be in that mutex group.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
Diffstat (limited to 'tools/pyboard.py')
-rwxr-xr-x | tools/pyboard.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/pyboard.py b/tools/pyboard.py index e460c69e2..2608cb2a0 100755 --- a/tools/pyboard.py +++ b/tools/pyboard.py @@ -655,13 +655,13 @@ def main(): type=int, help="seconds to wait for USB connected board to become available", ) - group = cmd_parser.add_mutually_exclusive_group() - group.add_argument( + cmd_parser.add_argument( "--soft-reset", default=True, action=argparse.BooleanOptionalAction, help="Whether to perform a soft reset when connecting to the board.", ) + group = cmd_parser.add_mutually_exclusive_group() group.add_argument( "--follow", action="store_true", @@ -672,7 +672,7 @@ def main(): action="store_true", help="Do not follow the output after running the scripts.", ) - group.add_argument( + cmd_parser.add_argument( "--no-exclusive", action="store_true", help="Do not try to open the serial device for exclusive access.", |