refactoring

This commit is contained in:
Chris Lu
2021-08-04 12:30:18 -07:00
parent f6a9ad8001
commit d84c311699
5 changed files with 35 additions and 17 deletions

View File

@@ -55,6 +55,7 @@ func runShell(command *Command, args []string) bool {
var err error
shellOptions.FilerHost, shellOptions.FilerPort, err = util.ParseHostPort(*shellInitialFiler)
shellOptions.FilerAddress = *shellInitialFiler
if err != nil {
fmt.Printf("failed to parse filer %s: %v\n", *shellInitialFiler, err)
return false