From 79244e7df141a416c803b4f7d15819228ec610c5 Mon Sep 17 00:00:00 2001 From: Emile Date: Sun, 3 Nov 2019 18:07:28 +0100 Subject: verbose --- src/flags.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/flags.go') diff --git a/src/flags.go b/src/flags.go index aae5004..6139eef 100644 --- a/src/flags.go +++ b/src/flags.go @@ -44,8 +44,6 @@ var ( ) func registerFlags() { - log.Printf("%s Reading flags", green("[i]")) - shortcut := " (shortcut)" // Boolean values @@ -146,7 +144,9 @@ func registerFlags() { HideChar: parseIntList(hideChar), } - log.Printf("%s Hiding: %v", cyan("[i]"), hide) + if verbose == true { + log.Printf("%s Hiding: {code: %v, line: %v, word: %v, char: %v}", cyan("[i]"), hide.HideCode, hide.HideLine, hide.HideWord, hide.HideChar) + } show = Show{ ShowCode: parseIntList(showCode), @@ -154,9 +154,9 @@ func registerFlags() { ShowWord: parseIntList(showWord), ShowChar: parseIntList(showChar), } - log.Printf("%s Showing: %v", cyan("[i]"), show) - - log.Printf("%s Done reading flags", boldGreen("[+]")) + if verbose == true { + log.Printf("%s Showing: {code: %v, line: %v, word: %v, char: %v}", cyan("[i]"), show.ShowCode, show.ShowLine, show.ShowWord, show.ShowChar) + } } // parseIntList parses the given string by spliting it at commas returning a list of all ints -- cgit 1.4.1