default mongoSrc in localhost:27018

This commit is contained in:
Michele Fadda 2015-07-21 12:33:05 +02:00
parent d55ba3051d
commit bcf786f392

View file

@ -14,7 +14,7 @@ import (
)
const (
_VERSION = "v1.0.1"
_VERSION = "v1.0.2"
_tformat = "2006-01-02"
_24h = (time.Hour * 23) + (time.Minute * 59) + (time.Second * 59)
_10m = (time.Minute * 10)
@ -88,7 +88,7 @@ func init() {
opts.LogFile = path.Join(current, opts.LogFile)
flag.StringVar(&opts.MongoSrc, "ms", "", "Mongodb Source")
flag.StringVar(&opts.MongoSrc, "ms", opts.MongoSrc, "Mongodb Source")
flag.StringVar(&opts.MongoDst, "md", "", "Mongodb Destination")
flag.StringVar(&opts.LogFile, "l", opts.LogFile, "Logs filename")
flag.StringVar(&opts.StartDate, "d", opts.StartDate, "Date")