Fixed cmd subcommand, cleaned up debug output
This commit is contained in:
parent
6d48cf11bf
commit
b58dea42be
2 changed files with 2 additions and 2 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue