7 echo "usage: $SCRIPTNAME [OPTIONS]"
8 echo " Show a text entry dialog."
9 echo " -i, --input-hint <hint> The input hint to show when the input is empty"
10 echo " -p, --password Enter the input as a password"
14 O
=`busybox getopt -q -l help -l input-hint: -l password -- hi:p "$@"`
15 if [ $?
!= 0 ] ; then show_usage
; exit 1 ; fi
19 -h|
--help) show_usage
; exit 0;;
20 -i|
--input-hint
) PARAMS
="$PARAMS --es input_hint '$2'"; shift 2;;
21 -p|
--password
) PARAMS
="$PARAMS --es input_type password"; shift 1;;
23 *) echo Error
; exit 1;;
28 if [ $# != 0 ]; then show_usage
; exit 1; fi
30 eval @TERMUX_API@ Dialog
$PARAMS