code: func (c *cmd) init() {
  	c.flags = flag.NewFlagSet("", flag.ContinueOnError)
  	c.flags.StringVar(&c.filter, "filter", "", "Filter to use with the request")
  	c.flags.BoolVar(&c.detailed, "detailed", false, "Output detailed information about "+
  		"the nodes including their addresses and metadata.")
  	c.flags.StringVar(&c.near, "near", "", "Node name to sort the node list in ascending "+
  		"order based on estimated round-trip time from that node. "+
  		"Passing \"_agent\" will use this agent's node for sorting.")
  	c.flags.Var((*flags.FlagMapValue)(&c.nodeMeta), "node-meta", "Metadata to "+
  		"filter nodes with the given `key=value` pairs. This flag may be "+
  		"specified multiple times to filter on multiple sources of metadata.")
  	c.flags.StringVar(&c.service, "service", "", "Service `id or name` to filter nodes. "+
  		"Only nodes which are providing the given service will be returned.")
  
  	c.http = &flags.HTTPFlags{}
  	flags.Merge(c.flags, c.http.ClientFlags())
  	flags.Merge(c.flags, c.http.ServerFlags())
  	c.help = flags.Usage(help, c.flags)
  }
docs: // init sets up command flags and help text