diff options
author | n-peugnet <n.peugnet@free.fr> | 2021-09-14 15:37:50 +0200 |
---|---|---|
committer | n-peugnet <n.peugnet@free.fr> | 2021-09-14 15:41:44 +0200 |
commit | 33967236e18c33d0d83b34b76f8238c3d588b21d (patch) | |
tree | 9bd3334b6eabb7cd3b07d7efb9c4c90aa8726a6d /main.go | |
parent | d85847ec99d44e1010a95c71579a754ac9f7c646 (diff) | |
download | dna-backup-33967236e18c33d0d83b34b76f8238c3d588b21d.tar.gz dna-backup-33967236e18c33d0d83b34b76f8238c3d588b21d.zip |
logger add panic + colors & remove ln variants & use it
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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) } |