Skip to content

Commit 8fa727c

Browse files
committed
Revert "[fix] : Supported --message"
This reverts commit 4fb357f.
1 parent 4fb357f commit 8fa727c

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

tools/msg.sh

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ _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"
4038
echo " -n | --nocolor No output colored output"
4139
echo " -o | --option [option] Specify echo options"
4240
echo " -s | --space [number] Specifies the label space"
@@ -58,8 +56,8 @@ msg_error() {
5856

5957
# Parse options
6058
ARGUMENT="${@}"
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"
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"
6361
OPT=$(getopt -o ${_opt_short} -l ${_opt_long} -- ${ARGUMENT})
6462
[[ ${?} != 0 ]] && exit 1
6563

@@ -81,10 +79,6 @@ while true; do
8179
msg_label="${2}"
8280
shift 2
8381
;;
84-
-m | --message)
85-
message="${2}"
86-
shift 2
87-
;;
8882
-n | --nocolor)
8983
nocolor=true
9084
shift 1
@@ -238,9 +232,7 @@ case ${1} in
238232
esac
239233

240234
word_count="${#msg_label}"
241-
if [[ -z "${message}" ]]; then
242-
message="${@}"
243-
fi
235+
message="${@}"
244236

245237
echo_type() {
246238
if [[ "${nolabel}" = false ]]; then

0 commit comments

Comments
 (0)