github.com/aristanetworks/goarista@v0.0.0-20240514173732-cca2755bbd44/kafka/flag.go (about)

     1  // Copyright (c) 2016 Arista Networks, Inc.
     2  // Use of this source code is governed by the Apache License 2.0
     3  // that can be found in the COPYING file.
     4  
     5  package kafka
     6  
     7  import (
     8  	"flag"
     9  	"os"
    10  	"path/filepath"
    11  )
    12  
    13  // Addresses is the flag for kafka's comma-separated addresses
    14  var Addresses = flag.String("kafkaaddrs", "localhost:9092", "kafka's comma-separated addresses")
    15  
    16  // Topic is the flag for kafka's topic
    17  var Topic = flag.String("kafkatopic", filepath.Base(os.Args[0]), "kafka's topic")