jmavsim_run.sh: add -o flag for SIH display only

This commit is contained in:
romain-chiap 2020-01-13 16:09:40 +01:00 committed by Beat Küng
parent fb0bf26787
commit ba28ef5809
1 changed files with 4 additions and 2 deletions

View File

@ -10,7 +10,7 @@ extra_args=
baudrate=921600
device=
ip="127.0.0.1"
while getopts ":b:d:p:qsr:f:i:l" opt; do
while getopts ":b:d:p:qsr:f:i:lo" opt; do
case $opt in
b)
baudrate=$OPTARG
@ -36,6 +36,9 @@ while getopts ":b:d:p:qsr:f:i:l" opt; do
l)
extra_args="$extra_args -lockstep"
;;
o)
extra_args="$extra_args -disponly"
;;
\?)
echo "Invalid option: -$OPTARG" >&2
exit 1
@ -75,4 +78,3 @@ if [ $ret -ne 0 -a $ret -ne 130 ]; then # 130 is Ctrl-C
# understood. Try starting without it
java -Djava.ext.dirs= -Djavax.accessibility.assistive_technologies=" " -jar jmavsim_run.jar $device $extra_args
fi