Browse Source

termux-api: Remove empty lines from -h output

android-5
Fredrik Fornwall 8 years ago
parent
commit
2d617a3231
  1. 1
      packages/termux-api/termux-battery-status
  2. 1
      packages/termux-api/termux-camera-info
  3. 2
      packages/termux-api/termux-camera-photo
  4. 1
      packages/termux-api/termux-clipboard-get
  5. 1
      packages/termux-api/termux-clipboard-set
  6. 1
      packages/termux-api/termux-contact-list
  7. 2
      packages/termux-api/termux-dialog
  8. 2
      packages/termux-api/termux-download
  9. 1
      packages/termux-api/termux-infrared-frequencies
  10. 2
      packages/termux-api/termux-infrared-transmit
  11. 2
      packages/termux-api/termux-location
  12. 2
      packages/termux-api/termux-share
  13. 2
      packages/termux-api/termux-sms-inbox
  14. 2
      packages/termux-api/termux-sms-send
  15. 1
      packages/termux-api/termux-telephony-cellinfo
  16. 1
      packages/termux-api/termux-telephony-deviceinfo
  17. 2
      packages/termux-api/termux-toast
  18. 1
      packages/termux-api/termux-tts-engines
  19. 2
      packages/termux-api/termux-tts-speak
  20. 2
      packages/termux-api/termux-vibrate

1
packages/termux-api/termux-battery-status

@ -5,7 +5,6 @@ SCRIPTNAME=termux-battery-status
show_usage () {
echo "Usage: $SCRIPTNAME"
echo "Get the status of the device battery."
echo ""
exit 0
}

1
packages/termux-api/termux-camera-info

@ -5,7 +5,6 @@ SCRIPTNAME=termux-camera-info
show_usage () {
echo "Usage: $SCRIPTNAME"
echo "Get information about device camera(s)."
echo ""
exit 0
}

2
packages/termux-api/termux-camera-photo

@ -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
}

1
packages/termux-api/termux-clipboard-get

@ -5,7 +5,6 @@ SCRIPTNAME=termux-clipboard-get
show_usage () {
echo "Usage: $SCRIPTNAME"
echo "Get the system clipboard text."
echo ""
exit 0
}

1
packages/termux-api/termux-clipboard-set

@ -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
}

1
packages/termux-api/termux-contact-list

@ -5,7 +5,6 @@ SCRIPTNAME=termux-contact-list
show_usage () {
echo "Usage: $SCRIPTNAME"
echo "List all contacts."
echo ""
exit 0
}

2
packages/termux-api/termux-dialog

@ -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
}

2
packages/termux-api/termux-download

@ -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
}

1
packages/termux-api/termux-infrared-frequencies

@ -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
}

2
packages/termux-api/termux-infrared-transmit

@ -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
}

2
packages/termux-api/termux-location

@ -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
}

2
packages/termux-api/termux-share

@ -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
}

2
packages/termux-api/termux-sms-inbox

@ -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
}

2
packages/termux-api/termux-sms-send

@ -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
}

1
packages/termux-api/termux-telephony-cellinfo

@ -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
}

1
packages/termux-api/termux-telephony-deviceinfo

@ -5,7 +5,6 @@ SCRIPTNAME=termux-telephony-deviceinfo
show_usage () {
echo "Usage: $SCRIPTNAME"
echo "Get information about the telephony device."
echo ""
exit 0
}

2
packages/termux-api/termux-toast

@ -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
}

1
packages/termux-api/termux-tts-engines

@ -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
}

2
packages/termux-api/termux-tts-speak

@ -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
}

2
packages/termux-api/termux-vibrate

@ -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
}

Loading…
Cancel
Save