default mongoSrc in localhost:27018
This commit is contained in:
parent
d55ba3051d
commit
bcf786f392
1 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
_VERSION = "v1.0.1"
|
_VERSION = "v1.0.2"
|
||||||
_tformat = "2006-01-02"
|
_tformat = "2006-01-02"
|
||||||
_24h = (time.Hour * 23) + (time.Minute * 59) + (time.Second * 59)
|
_24h = (time.Hour * 23) + (time.Minute * 59) + (time.Second * 59)
|
||||||
_10m = (time.Minute * 10)
|
_10m = (time.Minute * 10)
|
||||||
|
@ -88,7 +88,7 @@ func init() {
|
||||||
|
|
||||||
opts.LogFile = path.Join(current, opts.LogFile)
|
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.MongoDst, "md", "", "Mongodb Destination")
|
||||||
flag.StringVar(&opts.LogFile, "l", opts.LogFile, "Logs filename")
|
flag.StringVar(&opts.LogFile, "l", opts.LogFile, "Logs filename")
|
||||||
flag.StringVar(&opts.StartDate, "d", opts.StartDate, "Date")
|
flag.StringVar(&opts.StartDate, "d", opts.StartDate, "Date")
|
||||||
|
|
Loading…
Add table
Reference in a new issue