Skip to content

Commit f572721

Browse files
committed
desc flag marked deprecated
1 parent 76fce6e commit f572721

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmd/create/create_endpoint.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ ex) loxicmd create endpoint 32.32.32.1 --name=32.32.32.1_http_8080 --probetype=h
119119
}
120120

121121
createEndPointCmd.Flags().StringVar(&o.Name, "name", "", "Endpoint Identifier")
122+
createEndPointCmd.Flags().StringVar(&o.Name, "desc", "", "Endpoint Identifier")
123+
createEndPointCmd.Flags().MarkDeprecated("desc", "This flag is decrecated, Use --name")
122124
createEndPointCmd.Flags().StringVar(&o.ProbeType, "probetype", "ping", "Probe-type:ping,http,https,connect-udp,connect-tcp,connect-sctp,none")
123125
createEndPointCmd.Flags().StringVar(&o.ProbeReq, "probereq", "", "If probe is http/https, one can specify additional uri path")
124126
createEndPointCmd.Flags().StringVar(&o.ProbeResp, "proberesp", "", "If probe is http/https, one can specify custom response string")

0 commit comments

Comments
 (0)