From c36690614afa58789dd8fa2ad321b7187ef05299 Mon Sep 17 00:00:00 2001 From: fefr Date: Wed, 20 Nov 2019 15:07:11 +0800 Subject: [PATCH] fix bug in -S argument --- kflash.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kflash.py b/kflash.py index d4cb1da..bbe6154 100755 --- a/kflash.py +++ b/kflash.py @@ -1120,7 +1120,7 @@ def open_terminal(reset): parser.add_argument("-n", "--noansi", help="Do not use ANSI colors, recommended in Windows CMD", default=False, action="store_true") parser.add_argument("-s", "--sram", help="Download firmware to SRAM and boot", default=False, action="store_true") parser.add_argument("-B", "--Board",required=False, type=str, help="Select dev board", choices=boards_choices) - parser.add_argument("-S", "--Slow",required=False, help="Slow download mode", default=False) + parser.add_argument("-S", "--Slow",required=False, help="Slow download mode", default=False, action="store_true") parser.add_argument("firmware", help="firmware bin path") args = parser.parse_args() else: