aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
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)
}