Skip to content

Commit 29ba294

Browse files
committed
Add usage example to routes flag
1 parent e52f1e8 commit 29ba294

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/headscale/cli/nodes.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ func init() {
9898

9999
approveRoutesCmd.Flags().Uint64P("identifier", "i", 0, "Node identifier (ID)")
100100
approveRoutesCmd.MarkFlagRequired("identifier")
101-
approveRoutesCmd.Flags().StringSliceP("routes", "r", []string{}, "List of routes that will be approved")
101+
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)`)
102102
nodeCmd.AddCommand(approveRoutesCmd)
103103

104104
nodeCmd.AddCommand(backfillNodeIPsCmd)
@@ -839,7 +839,7 @@ var approveRoutesCmd = &cobra.Command{
839839
return
840840
}
841841

842-
// Sending tags to node
842+
// Sending routes to node
843843
request := &v1.SetApprovedRoutesRequest{
844844
NodeId: identifier,
845845
Routes: routes,

0 commit comments

Comments
 (0)