Skip to content

Commit

Permalink
desc flag marked deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
nik-netlox committed May 16, 2023
1 parent 76fce6e commit f572721
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/create/create_endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ ex) loxicmd create endpoint 32.32.32.1 --name=32.32.32.1_http_8080 --probetype=h
}

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

0 comments on commit f572721

Please sign in to comment.