birdayz / kaf

Modern CLI for Apache Kafka, written in Go.
Apache License 2.0
2.23k stars 143 forks source link

Can `--replicas` default to -1? #370

Open rambo-panda opened 1 week ago

rambo-panda commented 1 week ago

current version: kaf version 0.2.8 (fde2262b33f186f04f3f34bf7ef0220946288899)


Isn't it more appropriate for the --replicas parameter to be -1 by default when creating a topic for the robustness of the project?

Error: accepts 1 arg(s), received 0
Usage:
  kaf topic create TOPIC [flags]

Flags:
      --compact            Enable topic compaction
  -h, --help               help for create
  -p, --partitions int32   Number of partitions (default 1)
  -r, --replicas int16     Number of replicas (default 1)

ps: partitions are already set to -1 by default.