From 33967236e18c33d0d83b34b76f8238c3d588b21d Mon Sep 17 00:00:00 2001 From: n-peugnet Date: Tue, 14 Sep 2021 15:37:50 +0200 Subject: logger add panic + colors & remove ln variants & use it --- main.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index b813954..dea57ea 100644 --- a/main.go +++ b/main.go @@ -17,7 +17,7 @@ var ( ) func init() { - flag.IntVar(&logLevel, "v", 1, "log verbosity level (0-3)") + flag.IntVar(&logLevel, "v", 2, "log verbosity level (0-3)") } func main() { @@ -31,9 +31,9 @@ func main() { flag.Usage() os.Exit(1) } - - source := os.Args[0] - dest := os.Args[1] + args := flag.Args() + source := args[0] + dest := args[1] repo := NewRepo(dest) repo.Commit(source) } -- cgit v1.2.3