kopia lustrzana https://github.com/micropython/micropython
tools/pyboard.py: Move --no-exclusive/--soft-reset out of mutex group.
The --no-exclusive flag was accidentally added to the mutex group inpull/7711/head178198a01d
. The --soft-reset flag was accidentally added to the mutex group in41adf17830
. 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>
rodzic
2296df0a32
commit
2a290bbfe1
|
@ -655,13 +655,13 @@ def main():
|
||||||
type=int,
|
type=int,
|
||||||
help="seconds to wait for USB connected board to become available",
|
help="seconds to wait for USB connected board to become available",
|
||||||
)
|
)
|
||||||
group = cmd_parser.add_mutually_exclusive_group()
|
cmd_parser.add_argument(
|
||||||
group.add_argument(
|
|
||||||
"--soft-reset",
|
"--soft-reset",
|
||||||
default=True,
|
default=True,
|
||||||
action=argparse.BooleanOptionalAction,
|
action=argparse.BooleanOptionalAction,
|
||||||
help="Whether to perform a soft reset when connecting to the board.",
|
help="Whether to perform a soft reset when connecting to the board.",
|
||||||
)
|
)
|
||||||
|
group = cmd_parser.add_mutually_exclusive_group()
|
||||||
group.add_argument(
|
group.add_argument(
|
||||||
"--follow",
|
"--follow",
|
||||||
action="store_true",
|
action="store_true",
|
||||||
|
@ -672,7 +672,7 @@ def main():
|
||||||
action="store_true",
|
action="store_true",
|
||||||
help="Do not follow the output after running the scripts.",
|
help="Do not follow the output after running the scripts.",
|
||||||
)
|
)
|
||||||
group.add_argument(
|
cmd_parser.add_argument(
|
||||||
"--no-exclusive",
|
"--no-exclusive",
|
||||||
action="store_true",
|
action="store_true",
|
||||||
help="Do not try to open the serial device for exclusive access.",
|
help="Do not try to open the serial device for exclusive access.",
|
||||||
|
|
Ładowanie…
Reference in New Issue