diff --git a/core/src/main/scala/kafka/admin/TopicCommand.scala b/core/src/main/scala/kafka/admin/TopicCommand.scala index fc8d686..967c32f 100644 --- a/core/src/main/scala/kafka/admin/TopicCommand.scala +++ b/core/src/main/scala/kafka/admin/TopicCommand.scala @@ -224,11 +224,14 @@ object TopicCommand { .withRequiredArg .describedAs("topic") .ofType(classOf[String]) - val configOpt = parser.accepts("config", "A topic configuration override for the topic being created or altered.") + val nl = System.getProperty("line.separator") + val configOpt = parser.accepts("config", "A topic configuration override for the topic being created or altered." + + "The following is a list of valid configurations: " + nl + LogConfig.ConfigNames.map("\t" + _).mkString(nl) + nl + + "See the Kafka documentation for full details on the topic configs.") .withRequiredArg .describedAs("name=value") .ofType(classOf[String]) - val deleteConfigOpt = parser.accepts("deleteConfig", "A topic configuration override to be removed for an existing topic") + val deleteConfigOpt = parser.accepts("delete-config", "A topic configuration override to be removed for an existing topic (see above list of configurations). ") .withRequiredArg .describedAs("name") .ofType(classOf[String])