File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33
44PARAM_LIMIT=10
55PARAM_OFFSET=0
6- PARAM_TYPE= all
6+ PARAM_TYPE=all
77PARAM_NUMBER=" "
88PARAMS=" "
99
1010SCRIPTNAME=termux-sms-list
1111
1212SUPPORTED_TYPES=" all|inbox|sent|draft|outbox"
1313show_usage () {
14- echo " Usage: $SCRIPTNAME [-d] [-l limit] [-n] [-o offset] [-t type]"
14+ echo " Usage: $SCRIPTNAME [-d] [-l limit] [-n] [-o offset] [-t type] [-c] [-f number] "
1515 echo " List SMS messages."
1616 echo " -l limit offset in sms list (default: $PARAM_LIMIT )"
1717 echo " -o offset offset in sms list (default: $PARAM_OFFSET )"
@@ -25,7 +25,7 @@ show_usage () {
2525 exit 0
2626}
2727
28- while getopts :hdl:t:no : option
28+ while getopts :hdl:tf:cno : option
2929do
3030 case " $option " in
3131 h) show_usage;;
3434 n) PARAMS=" $PARAMS --ez show-phone-numbers true" ;;
3535 o) PARAM_OFFSET=$OPTARG ;;
3636 t) PARAM_TYPE=$OPTARG ;;
37-
38- u) PARAMS=" $PARAMS --ez conversation-list true" ;;
39- f) PARAM_NUMBER=" --es from $OPTARG " ;;
37+ c) PARAMS=" $PARAMS --ez conversation-list true" ;;
38+ f) PARAM_NUMBER=" --es from $OPTARG " ;;
4039 ? ) echo " $SCRIPTNAME : illegal option -$OPTARG " ; exit 1;
4140 esac
4241done
You can’t perform that action at this time.
0 commit comments