Commit 2515a7d7 authored by Joanne Hugé's avatar Joanne Hugé

Add help options on the wrapper scripts

parent 0a572326
......@@ -14,7 +14,7 @@ interval=100000
client_options="-a -p 99 -f eth0"
qdisc_options=""
while getopts "bd:e:i:pt" opt; do
while getopts "bd:e:hi:pt" opt; do
case "${opt}" in
b )
client_options+=" -b"
......@@ -27,6 +27,10 @@ while getopts "bd:e:i:pt" opt; do
client_options+=" -e -q 7"
qdisc_options+="-e ${OPTARG}"
;;
h )
usage
exit 1
;;
i )
interval=${OPTARG}
;;
......
......@@ -10,11 +10,15 @@ usage() {
server_options="-a -p 99"
server_options="-a -p 99"
while getopts "bt:" opt; do
while getopts "bht:" opt; do
case "${opt}" in
b )
server_options+=" -b 192.168.99.26"
;;
h )
usage
exit 1
;;
t )
use_tcpdump=1
nb_packets=${OPTARG}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment