Add usage example to routes flag

This commit is contained in:
Florian Preinstorfer 2025-03-02 11:14:09 +01:00 committed by nblock
parent e52f1e87ce
commit 29ba29478b

View File

@ -98,7 +98,7 @@ func init() {
approveRoutesCmd.Flags().Uint64P("identifier", "i", 0, "Node identifier (ID)")
approveRoutesCmd.MarkFlagRequired("identifier")
approveRoutesCmd.Flags().StringSliceP("routes", "r", []string{}, "List of routes that will be approved")
approveRoutesCmd.Flags().StringSliceP("routes", "r", []string{}, `List of routes that will be approved (comma-separated, e.g. "10.0.0.0/8,192.168.0.0/24" or empty string to remove all approved routes)`)
nodeCmd.AddCommand(approveRoutesCmd)
nodeCmd.AddCommand(backfillNodeIPsCmd)
@ -839,7 +839,7 @@ var approveRoutesCmd = &cobra.Command{
return
}
// Sending tags to node
// Sending routes to node
request := &v1.SetApprovedRoutesRequest{
NodeId: identifier,
Routes: routes,