From b8c1402492eb947750ffdbee944a3b1b1097d024 Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Wed, 4 Mar 2020 07:34:52 -0700 Subject: [PATCH] s/debug/verbose/ --- main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 6f3a71b..c322720 100644 --- a/main.go +++ b/main.go @@ -18,11 +18,11 @@ import ( func main() { var username, password, userID, accessToken, server, db, avatar, botOwner string var key, value, get string - var setup, doc, debug bool + var setup, doc, verbose bool flag.BoolVar(&doc, "doc", false, "print plugin information and exit") flag.BoolVar(&setup, "s", false, "setup account") - flag.BoolVar(&debug, "debug", false, "print debug messages") + flag.BoolVar(&verbose, "v", false, "print verbose messages") flag.StringVar(&avatar, "avatar", "", "set the avatar of the bot to specified url") flag.StringVar(&db, "db", "db", "full path to database directory") @@ -213,7 +213,7 @@ func main() { start := time.Now() p.RespondText(cli, ev, username, post) elapsed := time.Since(start) - if debug { + if verbose { log.Printf("%s took %s to run\n", p.Name(), elapsed) } }