termux-api: Cleanup and improve consistency
[termux-packages] / packages / termux-api / termux-clipboard-set
index 8486179..621674f 100755 (executable)
@@ -3,12 +3,10 @@ set -e -u
 
 SCRIPTNAME=termux-clipboard-set
 show_usage () {
-       echo "Usage: $SCRIPTNAME <text>"
-       echo "Set the system clipboard text."
-       echo ""
-       echo "If no arguments are given the text to set is read from stdin,"
-       echo "otherwise all arguments given are used as the text to set."
-       exit 0
+    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
 }
 
 while getopts :h option