@@ -35,6 +35,8 @@ _help() {
3535 echo " -a | --appname [name] Specify the app name"
3636 echo " -c | --chr [character] Specify the character to adjust the label"
3737 echo " -l | --label [label] Specify the label"
38+ echo " -m | --message [message] Specify the message."
39+ echo " Use only if you have problems interpreting arguments"
3840 echo " -n | --nocolor No output colored output"
3941 echo " -o | --option [option] Specify echo options"
4042 echo " -s | --space [number] Specifies the label space"
@@ -56,8 +58,8 @@ msg_error() {
5658
5759# Parse options
5860ARGUMENT=" ${@ } "
59- _opt_short=" a:c:l:no:s:xh-:"
60- _opt_long=" appname:,chr:,label:,nocolor,option:,space:,bash-debug,help,labelcolor:,nolabel,noappname,noadjust"
61+ _opt_short=" a:c:l:m: no:s:xh-:"
62+ _opt_long=" appname:,chr:,label:,nocolor,message:, option:,space:,bash-debug,help,labelcolor:,nolabel,noappname,noadjust"
6163OPT=$( getopt -o ${_opt_short} -l ${_opt_long} -- ${ARGUMENT} )
6264[[ ${?} != 0 ]] && exit 1
6365
@@ -79,6 +81,10 @@ while true; do
7981 msg_label=" ${2} "
8082 shift 2
8183 ;;
84+ -m | --message)
85+ message=" ${2} "
86+ shift 2
87+ ;;
8288 -n | --nocolor)
8389 nocolor=true
8490 shift 1
@@ -232,7 +238,9 @@ case ${1} in
232238esac
233239
234240word_count=" ${# msg_label} "
235- message=" ${@ } "
241+ if [[ -z " ${message} " ]]; then
242+ message=" ${@ } "
243+ fi
236244
237245echo_type () {
238246 if [[ " ${nolabel} " = false ]]; then
0 commit comments