bin/ use printf

This commit is contained in:
Kay Marquardt (Gnadelwartz) 2020-12-26 20:48:13 +01:00
parent 1bd1727ea0
commit 2e878fd864
3 changed files with 9 additions and 11 deletions

View File

@ -22,7 +22,7 @@
# AUTHOR: KayM (gnadelwartz), kay@rrr.de # AUTHOR: KayM (gnadelwartz), kay@rrr.de
# CREATED: 23.12.2020 16:52 # CREATED: 23.12.2020 16:52
# #
#### $$VERSION$$ v1.20-0-g2ab00a2 #### $$VERSION$$ v1.20-4-g1bd1727
#=============================================================================== #===============================================================================
#### ####
@ -42,10 +42,10 @@ case "$1" in
shift shift
;; ;;
'') '')
echo "missing arguments" printf "missing arguments\n"
;& ;&
"-h"*) "-h"*)
echo 'usage: send_edit_message [-h|--help] [format] "CHAT[ID]" "MESSAGE[ID]" "message ..." [debug]' printf 'usage: send_edit_message [-h|--help] [format] "CHAT[ID]" "MESSAGE[ID]" "message ..." [debug]\n'
exit 1 exit 1
;; ;;
'--h'*) '--h'*)

View File

@ -21,19 +21,18 @@
# AUTHOR: KayM (gnadelwartz), kay@rrr.de # AUTHOR: KayM (gnadelwartz), kay@rrr.de
# CREATED: 25.12.2020 20:24 # CREATED: 25.12.2020 20:24
# #
#### $$VERSION$$ v1.20-0-g2ab00a2 #### $$VERSION$$ v1.20-4-g1bd1727
#=============================================================================== #===============================================================================
#### ####
# parse args # parse args
SEND="upload_file" SEND="upload_file"
case "$1" in case "$1" in
'') '')
echo "missing arguments" printf "missing arguments\n"
;& ;&
"-h"*) "-h"*)
echo 'usage: send_file [-h|--help] "CHAT[ID]" "file" "caption ...." [debug]' printf 'usage: send_file [-h|--help] "CHAT[ID]" "file" "caption ...." [debug]\n'
exit 1 exit 1
;; ;;
'--h'*) '--h'*)

View File

@ -21,10 +21,9 @@
# AUTHOR: KayM (gnadelwartz), kay@rrr.de # AUTHOR: KayM (gnadelwartz), kay@rrr.de
# CREATED: 16.12.2020 11:34 # CREATED: 16.12.2020 11:34
# #
#### $$VERSION$$ v1.20-0-g2ab00a2 #### $$VERSION$$ v1.20-4-g1bd1727
#=============================================================================== #===============================================================================
#### ####
# parse args # parse args
SEND="send_message" SEND="send_message"
@ -42,10 +41,10 @@ case "$1" in
shift shift
;; ;;
'') '')
echo "missing arguments" printf "missing arguments\n"
;& ;&
"-h"*) "-h"*)
echo 'usage: send_message [-h|--help] [format] "CHAT[ID]" "message ...." [debug]' printf 'usage: send_message [-h|--help] [format] "CHAT[ID]" "message ...." [debug]\n'
exit 1 exit 1
;; ;;
'--h'*) '--h'*)