flag.go 492 B

123456789101112131415161718
  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. package kafka
  5. import (
  6. "flag"
  7. "os"
  8. "path/filepath"
  9. )
  10. // Addresses is the flag for kafka's comma-separated addresses
  11. var Addresses = flag.String("kafkaaddrs", "localhost:9092", "kafka's comma-separated addresses")
  12. // Topic is the flag for kafka's topic
  13. var Topic = flag.String("kafkatopic", filepath.Base(os.Args[0]), "kafka's topic")