6 echo 'usage: termux-vibrate [<duration_ms>]'
7 echo 'Vibrate the device for the specified duration (default:1000 ms).'
12 O
=`getopt -l duration: -l help -- d:h "$@"`
16 -d|
--duration
) PARAM_DURATION
="--ei duration_ms $2"; shift 2;;
17 -h|
--help) show_usage
;;
19 *) echo Error
; exit 1;;
23 @TERMUX_API@ Vibrate
$PARAM_DURATION