Fixed cmd subcommand, cleaned up debug output

This commit is contained in:
Jonas Köritz 2019-08-29 10:24:02 +02:00
parent 6d48cf11bf
commit b58dea42be
2 changed files with 2 additions and 2 deletions

View file

@ -163,7 +163,7 @@ func main() {
bufio.NewReader(os.Stdin).ReadBytes('\n')
},
PreRun: func(cmd *cobra.Command, args []string) {
camera = connectAndLogin(net.ParseIP(args[0]), int(port), username, password, verbose)
camera = connectAndLogin(net.ParseIP(args[1]), int(port), username, password, verbose)
},
PostRun: func(cmd *cobra.Command, args []string) {
camera.Disconnect()