adds no-color mode to log
This commit is contained in:
parent
a3ed7bf2b5
commit
1f091e39a5
12
bin/log
12
bin/log
|
@ -43,6 +43,12 @@ parse_input () {
|
|||
flag_debug=1
|
||||
arg_log=0
|
||||
;;
|
||||
c)
|
||||
YELLOW=""
|
||||
GREEN=""
|
||||
RED=""
|
||||
RESET=""
|
||||
;;
|
||||
s)
|
||||
arg_ship="$OPTARG"
|
||||
;;
|
||||
|
@ -69,13 +75,11 @@ show_help () {
|
|||
printf "%s [-hvd] [-s shipname]\\n\\n" "$(basename "$0")"
|
||||
printf " -h Show this help\\n"
|
||||
printf " -v Show current version info\\n"
|
||||
printf " -d Debug mode\\n"
|
||||
printf " -c No-Color mode\\n"
|
||||
printf " -s [shipname] Only log messages for ship named\\n"
|
||||
printf " -n [filename] Create new message with filename\\n"
|
||||
printf " (Users with multiple ships must use -s)\\n"
|
||||
printf "\\n"
|
||||
printf "Passing no options will enter interactive mode.\\n\\n"
|
||||
printf "\\n"
|
||||
}
|
||||
|
||||
yesno () {
|
||||
|
@ -193,7 +197,7 @@ main() {
|
|||
flag_file=0
|
||||
flag_title=0
|
||||
|
||||
arg_options="hvdt:f:s:z"
|
||||
arg_options="hvdct:f:s:z"
|
||||
arg_log=1
|
||||
arg_ship=""
|
||||
arg_file=""
|
||||
|
|
Loading…
Reference in New Issue