Skip to content

Commit

Permalink
print usage for all invalid options
Browse files Browse the repository at this point in the history
  • Loading branch information
hkbakke committed Jan 24, 2017
1 parent 5cc975e commit d751745
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tc-gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ apply_ingress_policing () {

# All rates should be given in mbit/s
while getopts ":i:u:d:b:f:q:c:xV" OPT; do
case $OPT in
case ${OPT} in
i)
IF_NAME="${OPTARG}"
;;
Expand All @@ -391,7 +391,7 @@ while getopts ":i:u:d:b:f:q:c:xV" OPT; do
print_version
exit 0
;;
\?)
*)
print_usage
exit 1
;;
Expand Down

0 comments on commit d751745

Please sign in to comment.