-PARAMS=""
-O=`busybox getopt -q -l description: -l title: -l help -- d:t:h "$@"`
-if [ $? != 0 ] ; then show_usage; exit 1 ; fi
-eval set -- "$O"
-while true; do
-case "$1" in
- -h|--help) show_usage; exit 0;;
- -d|--description) PARAMS="$PARAMS --es description '$2'"; shift 2;;
- -t|--title) PARAMS="$PARAMS --es title '$2'"; shift 2;;
- --) shift; break;;
- *) echo Error; exit 1;;
-esac
+ARG_D=""
+OPT_D=""
+ARG_T=""
+OPT_T=""
+
+while getopts :hd:t: option
+do
+ case "$option" in
+ h) show_usage;;
+ d) ARG_D="--es description"; OPT_D="$OPTARG";;
+ t) ARG_T="--es title"; OPT_T="$OPTARG";;
+ ?) echo "$SCRIPTNAME: illegal option -$OPTARG"; exit 1;
+ esac