Skip to content

Commit 9357388

Browse files
committed
solved coments from https://github.com/Grimler91
1 parent ffd8d44 commit 9357388

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

scripts/termux-sms-list

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ set -u
33

44
PARAM_LIMIT=10
55
PARAM_OFFSET=0
6-
PARAM_TYPE= all
6+
PARAM_TYPE=all
77
PARAM_NUMBER=""
88
PARAMS=""
99

1010
SCRIPTNAME=termux-sms-list
1111

1212
SUPPORTED_TYPES="all|inbox|sent|draft|outbox"
1313
show_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
2929
do
3030
case "$option" in
3131
h) show_usage;;
@@ -34,9 +34,8 @@ do
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
4241
done

0 commit comments

Comments
 (0)