Dot now allow using startup bookmark in multi-session mode

This commit is contained in:
Dan Sosedoff 2017-10-07 09:25:00 -05:00
parent 7381ff8589
commit d8ce8231cc

View File

@ -69,6 +69,10 @@ func ParseOptions() error {
Opts.AuthPass = os.Getenv("AUTH_PASS")
}
if Opts.Bookmark != "" && Opts.Sessions {
return errors.New("--bookmark is not allowed in multi-session")
}
if Opts.ConnectBackend != "" {
if !Opts.Sessions {
return errors.New("--sessions flag must be set")