Skip to content

Commit 0fbba8c

Browse files
committed
chore(stm32cubeprog): add short parity option
Even if -p is also used for pid they are mutually exclusive. Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent 8017b40 commit 0fbba8c

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

stm32CubeProg.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ usage() {
4343
Optional:
4444
-r, --rts <low/high> polarity of RTS signal ('low' by default)
4545
-d, --dtr <low/high> polarity of DTR signal
46-
--parity <none/even/odd> parity bit configuration ('even' by default)
46+
-p, --parity <none/even/odd> parity bit configuration ('even' by default)
4747
4848
Specific options for DFU protocol:
4949
Mandatory:
@@ -183,11 +183,8 @@ while true; do
183183
VID=$2
184184
shift 2
185185
;;
186-
-p | --pid)
186+
-p | --pid | --parity)
187187
PID=$2
188-
shift 2
189-
;;
190-
--parity)
191188
PARITY=$(echo "$2" | tr '[:lower:]' '[:upper:]')
192189
shift 2
193190
;;

0 commit comments

Comments
 (0)