-O=`busybox getopt -q -l short -l help -- sh "$@"`
-if [ $? != 0 ] ; then show_usage; exit 1 ; fi
-eval set -- "$O"
-while true; do
-case "$1" in
- -s|--short) PARAMS="$PARAMS --ez short true"; shift 1;;
- -h|--help) show_usage; exit 0;;
- --) shift; break;;
- *) echo Error; exit 1;;
-esac
+while getopts :hs option
+do
+ case "$option" in
+ h) show_usage;;
+ s) PARAMS="--ez short true";;
+ ?) echo "$SCRIPTNAME: illegal option -$OPTARG"; exit 1;
+ esac