chiark / gitweb /
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 fbdb8af2d9487da2adec154e264e6b5b3f832cc9..bbd8b6495c04a7a1a9bbf15341812949fd9ad64a 100755 (executable)
@@ -5,7 +5,6 @@ SCRIPTNAME=termux-battery-status
 show_usage () {
     echo "Usage: $SCRIPTNAME"
     echo "Get the status of the device battery."
 show_usage () {
     echo "Usage: $SCRIPTNAME"
     echo "Get the status of the device battery."
-    echo ""
     exit 0
 }
 
     exit 0
 }
 
index 79ec66e82d654116bcb085c1e5a20d858ddcfd65..daaec08f2e16dca1c5081239d79fea1f79783c51 100755 (executable)
@@ -5,7 +5,6 @@ SCRIPTNAME=termux-camera-info
 show_usage () {
     echo "Usage: $SCRIPTNAME"
     echo "Get information about device camera(s)."
 show_usage () {
     echo "Usage: $SCRIPTNAME"
     echo "Get information about device camera(s)."
-    echo ""
     exit 0
 }
 
     exit 0
 }
 
index 7b3836fff9b76b53e3f3d393217786bf5a4dd65c..4d3051be079819242e6a72b39cdfd7c431cb67a8 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."
 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 "  -c camera-id  ID of the camera to use (see termux-camera-info), default: 0"
-    echo ""
     exit 0
 }
 
     exit 0
 }
 
index d03fc515f2ae4bb73d3d01a5d8519dfc01c0e4d4..de5e4483b281b4cc9b416940804e15dbc69d5e62 100755 (executable)
@@ -5,7 +5,6 @@ SCRIPTNAME=termux-clipboard-get
 show_usage () {
     echo "Usage: $SCRIPTNAME"
     echo "Get the system clipboard text."
 show_usage () {
     echo "Usage: $SCRIPTNAME"
     echo "Get the system clipboard text."
-    echo ""
     exit 0
 }
 
     exit 0
 }
 
index 621674f4aa0ec995d5deb99676edca6bd7e5716a..c2a3a8456869b1c0f90a561b9b44f9bf172062b5 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."
 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
 }
 
     exit 0
 }
 
index a1d979b492ddc88eb3127b4b1ad6099606d8844e..7679ffe7fe30aa548db0a9e07f597f2a67100461 100755 (executable)
@@ -5,7 +5,6 @@ SCRIPTNAME=termux-contact-list
 show_usage () {
     echo "Usage: $SCRIPTNAME"
     echo "List all contacts."
 show_usage () {
     echo "Usage: $SCRIPTNAME"
     echo "List all contacts."
-    echo ""
     exit 0
 }
 
     exit 0
 }
 
index 2a244464d94a43203e4010c35df9249b8f42adac..4f662d817877a10d3052405f1b1d47f67271ca09 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."
 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 "  -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
 }
 
     exit 0
 }
 
index 4f904d38b648ec5dc95f4f7594664fa9604985f1..88471e31ca7a1d048b82ff68aa8e4b910f1ee13a 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."
 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 "  -d description  description for the download request notification"
     echo "  -t title        title for the download request notification"
-    echo ""
     exit 0
 }
 
     exit 0
 }
 
index 911247a50195c59c08581d79cf6c7af1c2d55c94..0442e2845783735a8c89f4593818e4cd96a31b4e 100755 (executable)
@@ -5,7 +5,6 @@ SCRIPTNAME=termux-infrared-frequencies
 show_usage () {
     echo "Usage: $SCRIPTNAME"
     echo "Query the infrared transmitter's supported carrier frequencies."
 show_usage () {
     echo "Usage: $SCRIPTNAME"
     echo "Query the infrared transmitter's supported carrier frequencies."
-    echo ""
     exit 0
 }
 
     exit 0
 }
 
index 90661cc0bfad5c3282c9ab3e0eb85ef05be6e8da..404faa3e019c0aa22594f824d9a27d475920680b 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."
 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 "  -f frequency  IR carrier frequency in Hertz"
-    echo ""
     exit 0
 }
 
     exit 0
 }
 
index fa840c763351edd29bb1785c59f21a98fa7ec11d..bbe8fa2d9ed0920d25cce969118a98455d2222ae 100755 (executable)
@@ -5,10 +5,8 @@ SCRIPTNAME=termux-location
 show_usage () {
     echo "usage: $SCRIPTNAME [-p provider] [-r request]"
     echo "Get the device 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 "  -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
 }
 
     exit 0
 }
 
index fb3e8fbff5729a92bf838fc0fc6222bd98861ad9..79cadaa7124d7af5b973c9f4b8d06ff34528cf7a 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."
 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,"
     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 "  -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
 }
 
     exit 0
 }
 
index ea109f392365140ec5fcdfc154e684829827e9ea..2e409fcbb93a7c370fb2f383e088119a82f4b32a 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."
 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 "  -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
 }
 
     exit 0
 }
 
index 47902660203c45f99ba9cba00ea6d09771f59c76..dcd281013ae549a30fb88ff2e4be3c58af50999e 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."
 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 "  -n number(s)  recipient number(s) - separate multiple numbers by commas"
-    echo ""
     exit 0
 }
 
     exit 0
 }
 
index d8e79673a421c6a4252c68aae9902cf9b571cbad..1aa110c14a26960a42279efc87fe5b16abfd2123 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."
 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
 }
 
     exit 0
 }
 
index 4f63d87322f4ab27d1f4ebb38aafbadc040b932b..f031245def53ac49e7ca8f266c7bb4a6acde80fb 100755 (executable)
@@ -5,7 +5,6 @@ SCRIPTNAME=termux-telephony-deviceinfo
 show_usage () {
     echo "Usage: $SCRIPTNAME"
     echo "Get information about the telephony device."
 show_usage () {
     echo "Usage: $SCRIPTNAME"
     echo "Get information about the telephony device."
-    echo ""
     exit 0
 }
 
     exit 0
 }
 
index 43a062c502f1cf0a044eb3609d3e3f293c993a89..c1bca2391b76be88fd776fab631255952d653f2d 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."
 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 " -s  only show the toast for a short while"
-    echo ""
     exit 0
 }
 
     exit 0
 }
 
index 9bdfd95c98ef3a130c1579f3b621b4e0f3e766de..3afa52b6e868fce48ff463926f2cd12b4838554f 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."
 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
 }
 
     exit 0
 }
 
index ff49339f8d5f78d1ad4c482a08aa227b8d6bcce0..fe7cb2c8c801e3f3d4b055397fa5262d56c0f2f9 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."
 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"
     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 "                 (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
 }
 
     exit 0
 }
 
index ed973bf2760abd27fee12a79d76df4d7bcd1ebcd..2ed8b67857a4b5d5b1f27848229513e26d00865c 100755 (executable)
@@ -5,10 +5,8 @@ SCRIPTNAME=termux-vibrate
 show_usage () {
     echo "Usage: $SCRIPTNAME [-d duration] [-f]"
     echo "Vibrate the device."
 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 "  -d duration  the duration to vibrate in ms (default:1000)"
     echo "  -f           force vibration even in silent mode"
-    echo ""
     exit 0
 }
 
     exit 0
 }