aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorn-peugnet <n.peugnet@free.fr>2021-09-14 15:37:50 +0200
committern-peugnet <n.peugnet@free.fr>2021-09-14 15:41:44 +0200
commit33967236e18c33d0d83b34b76f8238c3d588b21d (patch)
tree9bd3334b6eabb7cd3b07d7efb9c4c90aa8726a6d /main.go
parentd85847ec99d44e1010a95c71579a754ac9f7c646 (diff)
downloaddna-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.go8
1 files changed, 4 insertions, 4 deletions
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)
}