Skip to content

Commit 2c09756

Browse files
committed
[fix] : FIxed option
1 parent c022fc1 commit 2c09756

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

tools/msg.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,13 @@ msg_error() {
5454

5555

5656
# Parse options
57-
ARGUMENT="${*}"
58-
_opt_short="a:c:l:no:r:s:xh"
59-
_opt_long="nocolor,bash-debug,help,nolabel,noappname,noadjust,appname:,adjust-chr:,label:,echo-opts:,label-color:,label-space:"
60-
OPT=$(getopt -uo ${_opt_short} -l ${_opt_long} -- "${ARGUMENT}")
57+
opt_short="a:c:l:no:r:s:xh"
58+
opt_long="nocolor,bash-debug,help,nolabel,noappname,noadjust,appname:,adjust-chr:,label:,echo-opts:,label-color:,label-space:"
59+
OPT="$(getopt -uo ${opt_short} -l ${opt_long} -- "${@}")"
6160
[[ ${?} != 0 ]] && exit 1
6261

6362
eval set -- "${OPT}"
64-
unset OPT _opt_short _opt_long
63+
unset OPT opt_short opt_long
6564

6665
while true; do
6766
case "${1}" in

0 commit comments

Comments
 (0)