Merge pull request #206 from sosedoff/fix-lock-session

Do not return error when session is locked and database url is blank
This commit is contained in:
Dan Sosedoff 2016-11-20 16:55:13 -06:00 committed by GitHub
commit 577edd86f4

View File

@ -1,7 +1,6 @@
package command
import (
"fmt"
"os"
"strings"
@ -51,11 +50,6 @@ func ParseOptions() error {
Opts.Sessions = false
}
// When session is locked, connection UI is not displayed.
if Opts.LockSession && Opts.Url == "" {
return fmt.Errorf("Please provide connection url")
}
if Opts.Prefix != "" && !strings.Contains(Opts.Prefix, "/") {
Opts.Prefix = Opts.Prefix + "/"
}