Code to parse socket addresses

This commit is contained in:
Kovid Goyal
2022-08-18 10:11:17 +05:30
parent 417c8887b9
commit a7bc2fcba8
8 changed files with 138 additions and 20 deletions

View File

@@ -54,7 +54,12 @@ func run_CMD_NAME(cmd *cobra.Command, args []string) (err error) {
if err == nil {
rc.NoResponse = nrv
}
err = send_rc_command(rc, WAIT_TIMEOUT)
var timeout float64 = WAIT_TIMEOUT
rt, err := cmd.Flags().GetFloat64("response-timeout")
if err == nil {
timeout = rt
}
err = send_rc_command(rc, timeout)
return
}