termux-api: Remove empty lines from -h output
authorFredrik Fornwall <fredrik@fornwall.net>
Mon, 9 Jan 2017 04:09:24 +0000 (23:09 -0500)
committerFredrik Fornwall <fredrik@fornwall.net>
Mon, 9 Jan 2017 04:09:24 +0000 (23:09 -0500)
20 files changed:
packages/termux-api/termux-battery-status
packages/termux-api/termux-camera-info
packages/termux-api/termux-camera-photo
packages/termux-api/termux-clipboard-get
packages/termux-api/termux-clipboard-set
packages/termux-api/termux-contact-list
packages/termux-api/termux-dialog
packages/termux-api/termux-download
packages/termux-api/termux-infrared-frequencies
packages/termux-api/termux-infrared-transmit
packages/termux-api/termux-location
packages/termux-api/termux-share
packages/termux-api/termux-sms-inbox
packages/termux-api/termux-sms-send
packages/termux-api/termux-telephony-cellinfo
packages/termux-api/termux-telephony-deviceinfo
packages/termux-api/termux-toast
packages/termux-api/termux-tts-engines
packages/termux-api/termux-tts-speak
packages/termux-api/termux-vibrate

index fbdb8af..bbd8b64 100755 (executable)
@@ -5,7 +5,6 @@ SCRIPTNAME=termux-battery-status
 show_usage () {
     echo "Usage: $SCRIPTNAME"
     echo "Get the status of the device battery."
-    echo ""
     exit 0
 }
 
index 79ec66e..daaec08 100755 (executable)
@@ -5,7 +5,6 @@ SCRIPTNAME=termux-camera-info
 show_usage () {
     echo "Usage: $SCRIPTNAME"
     echo "Get information about device camera(s)."
-    echo ""
     exit 0
 }
 
index 7b3836f..4d3051b 100755 (executable)
@@ -5,9 +5,7 @@ SCRIPTNAME=termux-camera-photo
 show_usage () {
     echo "Usage: termux-camera-photo [-c camera-id] output-file"
     echo "Take a photo and save it to a file in JPEG format."
-    echo ""
     echo "  -c camera-id  ID of the camera to use (see termux-camera-info), default: 0"
-    echo ""
     exit 0
 }
 
index d03fc51..de5e448 100755 (executable)
@@ -5,7 +5,6 @@ SCRIPTNAME=termux-clipboard-get
 show_usage () {
     echo "Usage: $SCRIPTNAME"
     echo "Get the system clipboard text."
-    echo ""
     exit 0
 }
 
index 621674f..c2a3a84 100755 (executable)
@@ -5,7 +5,6 @@ SCRIPTNAME=termux-clipboard-set
 show_usage () {
     echo "Usage: $SCRIPTNAME [text]"
     echo "Set the system clipboard text. The text to set is either supplied as arguments or read from stdin if no arguments are given."
-    echo ""
     exit 0
 }
 
index a1d979b..7679ffe 100755 (executable)
@@ -5,7 +5,6 @@ SCRIPTNAME=termux-contact-list
 show_usage () {
     echo "Usage: $SCRIPTNAME"
     echo "List all contacts."
-    echo ""
     exit 0
 }
 
index 2a24446..4f662d8 100755 (executable)
@@ -5,12 +5,10 @@ SCRIPTNAME=termux-dialog
 show_usage () {
     echo "Usage: $SCRIPTNAME [-i hint] [-m] [-p] [-t title]"
     echo "Show a text entry dialog."
-    echo ""
     echo "  -i hint   the input hint to show when the input is empty"
     echo "  -m        use a textarea with multiple lines instead of a single"
     echo "  -p        enter the input as a password"
     echo "  -t title  the title to show for the input prompt"
-    echo ""
     exit 0
 }
 
index 4f904d3..88471e3 100755 (executable)
@@ -5,10 +5,8 @@ SCRIPTNAME=termux-download
 show_usage () {
     echo "Usage: $SCRIPTNAME [-d description] [-t title] url-to-download"
     echo "Download a resource using the system download manager."
-    echo ""
     echo "  -d description  description for the download request notification"
     echo "  -t title        title for the download request notification"
-    echo ""
     exit 0
 }
 
index 911247a..0442e28 100755 (executable)
@@ -5,7 +5,6 @@ SCRIPTNAME=termux-infrared-frequencies
 show_usage () {
     echo "Usage: $SCRIPTNAME"
     echo "Query the infrared transmitter's supported carrier frequencies."
-    echo ""
     exit 0
 }
 
index 90661cc..404faa3 100755 (executable)
@@ -5,9 +5,7 @@ SCRIPTNAME=termux-infrared-transmit
 show_usage () {
     echo "Usage: $SCRIPTNAME -f frequency pattern"
     echo "Transmit an infrared pattern. The pattern is specified in comma-separated on/off intervals, such as '20,50,20,30'. Only patterns shorter than 2 seconds will be transmitted."
-    echo ""
     echo "  -f frequency  IR carrier frequency in Hertz"
-    echo ""
     exit 0
 }
 
index fa840c7..bbe8fa2 100755 (executable)
@@ -5,10 +5,8 @@ SCRIPTNAME=termux-location
 show_usage () {
     echo "usage: $SCRIPTNAME [-p provider] [-r request]"
     echo "Get the device location."
-    echo ""
     echo "  -p provider  location provider [gps/network/passive] (default: gps)"
     echo "  -r request   kind of request to make [once/last/updates] (default: once)"
-    echo ""
     exit 0
 }
 
index fb3e8fb..79cadaa 100755 (executable)
@@ -5,7 +5,6 @@ SCRIPTNAME=termux-share
 show_usage () {
     echo "Usage: $SCRIPTNAME [-a action] [-c content-type] [-d] [-t title] [file]"
     echo "Share a file specified as argument or the text received on stdin if no file argument is given."
-    echo ""
     echo "  -a action        which action to performed on the shared content:"
     echo "                     edit/send/view (default:view)"
     echo "  -c content-type  content-type to use (default: guessed from file extension,"
@@ -13,7 +12,6 @@ show_usage () {
     echo "  -d               share to the default receiver if one is selected"
     echo "                     instead of showing a chooser"
     echo "  -t title         title to use for shared content (default: shared file name)"
-    echo ""
     exit 0
 }
 
index ea109f3..2e409fc 100755 (executable)
@@ -9,12 +9,10 @@ SCRIPTNAME=termux-sms-inbox
 show_usage () {
     echo "Usage: termux-sms-inbox [-d] [-l limit] [-n] [-o offset]"
     echo "List received SMS messages."
-    echo ""
     echo "  -d         show dates when messages were created"
     echo "  -l limit   offset in sms list (default: $PARAM_LIMIT)"
     echo "  -n         show phone numbers"
     echo "  -o offset  offset in sms list (default: $PARAM_OFFSET)"
-    echo ""
     exit 0
 }
 
index 4790266..dcd2810 100755 (executable)
@@ -5,9 +5,7 @@ SCRIPTNAME=termux-sms-send
 show_usage () {
     echo "Usage: $SCRIPTNAME -n number[,number2,number3,...] [text]"
     echo "Send a SMS message to the specified recipient number(s). The text to send is either supplied as arguments or read from stdin if no arguments are given."
-    echo ""
     echo "  -n number(s)  recipient number(s) - separate multiple numbers by commas"
-    echo ""
     exit 0
 }
 
index d8e7967..1aa110c 100755 (executable)
@@ -5,7 +5,6 @@ SCRIPTNAME=termux-telephony-cellinfo
 show_usage () {
     echo "Usage: $SCRIPTNAME"
     echo "Get information about all observed cell information from all radios on the device including the primary and neighboring cells."
-    echo ""
     exit 0
 }
 
index 4f63d87..f031245 100755 (executable)
@@ -5,7 +5,6 @@ SCRIPTNAME=termux-telephony-deviceinfo
 show_usage () {
     echo "Usage: $SCRIPTNAME"
     echo "Get information about the telephony device."
-    echo ""
     exit 0
 }
 
index 43a062c..c1bca23 100755 (executable)
@@ -5,9 +5,7 @@ SCRIPTNAME=termux-toast
 show_usage () {
     echo "Usage: termux-toast [-s] [text]"
     echo "Show text in a Toast (a transient popup). The text to show is either supplied as arguments or read from stdin if no arguments are given."
-    echo ""
     echo " -s  only show the toast for a short while"
-    echo ""
     exit 0
 }
 
index 9bdfd95..3afa52b 100755 (executable)
@@ -5,7 +5,6 @@ SCRIPTNAME=termux-tts-engines
 show_usage () {
     echo "Usage: $SCRIPTNAME"
     echo "Get information about the available text-to-speech (TTS) engines. The name of an engine may be given to the termux-tts-speak command using the -e option."
-    echo ""
     exit 0
 }
 
index ff49339..fe7cb2c 100755 (executable)
@@ -5,7 +5,6 @@ SCRIPTNAME=termux-tts-speak
 show_usage () {
     echo "Usage: $SCRIPTNAME [-e engine] [-l language] [-n region] [-v variant] [-p pitch] [-r rate] [-s stream] [text-to-speak]"
     echo "Speak text with a system text-to-speech (TTS) engine. The text to speak is either supplied as arguments or read from stdin if no arguments are given."
-    echo ""
     echo "  -e engine    TTS engine to use (see termux-tts-engines)"
     echo "  -l language  language to speak in (may be unsupported by the engine)"
     echo "  -n region    region of language to speak in"
@@ -20,7 +19,6 @@ show_usage () {
     echo "                 (2.0 is twice the normal speech rate)."
     echo "  -s stream    audio stream to use (default:NOTIFICATION), one of:"
     echo "                 ALARM, MUSIC, NOTIFICATION, RING, SYSTEM, VOICE_CALL"
-    echo ""
     exit 0
 }
 
index ed973bf..2ed8b67 100755 (executable)
@@ -5,10 +5,8 @@ SCRIPTNAME=termux-vibrate
 show_usage () {
     echo "Usage: $SCRIPTNAME [-d duration] [-f]"
     echo "Vibrate the device."
-    echo ""
     echo "  -d duration  the duration to vibrate in ms (default:1000)"
     echo "  -f           force vibration even in silent mode"
-    echo ""
     exit 0
 }