10 echo "usage: termux-sms-inbox [OPTIONS]"
11 echo "List received SMS messages."
13 echo "Options are all optional."
14 echo " -d, --show-dates show dates"
15 echo " -n, --show-phone-numbers show phone numbers"
16 echo " -o, --offset offset in sms list (default: $PARAM_OFFSET)"
17 echo " -l, --limit offset in sms list (default: $PARAM_LIMIT)"
20 O=`busybox getopt -q -l help -l show-dates -l show-phone-numbers -l limit: -l offset: -- dhl:no: "$@"`
21 if [ $? != 0 ] ; then show_usage; exit 1 ; fi
25 -h|--help) show_usage; exit 0;;
26 -l|--limit) PARAM_LIMIT=$2; shift 2;;
27 -o|--offset) PARAM_OFFSET=$2; shift 2;;
28 -d|--show-dates) PARAMS="$PARAMS --ez show-dates true"; shift;;
29 -n|--show-phone-numbers) PARAMS="$PARAMS --ez show-phone-numbers true"; shift;;
31 *) echo Error; exit 1;;
36 if [ $# != 0 ]; then show_usage; exit 1; fi
38 PARAMS="$PARAMS --ei offset $PARAM_OFFSET --ei limit $PARAM_LIMIT"
40 @TERMUX_API@ SmsInbox $PARAMS