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."
+ exit 0
}
while getopts :h option