This is an automated email from the ASF dual-hosted git repository.

schofielaj pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/kafka.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 1fdb011270e MINOR: Fix topic option description in kafka-topics.sh 
(#20865)
1fdb011270e is described below

commit 1fdb011270e85705b83db82e96f258abc11b786e
Author: Lan Ding <[email protected]>
AuthorDate: Thu Nov 13 21:36:59 2025 +0800

    MINOR: Fix topic option description in kafka-topics.sh (#20865)
    
    Update the --topic option description to clarify that regex symbols
    don't   require backslash escaping. Using wildcards directly in double
    quotes (e.g. "test.*")   works correctly.
    
    Reviewers: Andrew Schofield <[email protected]>, Chia-Ping Tsai
     <[email protected]>
---
 tools/src/main/java/org/apache/kafka/tools/TopicCommand.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/tools/src/main/java/org/apache/kafka/tools/TopicCommand.java 
b/tools/src/main/java/org/apache/kafka/tools/TopicCommand.java
index b4444333500..3de4a8dc518 100644
--- a/tools/src/main/java/org/apache/kafka/tools/TopicCommand.java
+++ b/tools/src/main/java/org/apache/kafka/tools/TopicCommand.java
@@ -751,8 +751,7 @@ public abstract class TopicCommand {
                     KAFKA_CONFIGS_CLI_SUPPORTS_ALTERING_TOPIC_CONFIGS);
             describeOpt = parser.accepts("describe", "List details for the 
given topics.");
             topicOpt = parser.accepts("topic", "The topic to create, alter, 
describe or delete. It also accepts a regular " +
-                            "expression, except for --create option. Put topic 
name in double quotes and use the '\\' prefix " +
-                            "to escape regular expression symbols; e.g. 
\"test\\.topic\".")
+                            "expression, except for --create option.")
                 .withRequiredArg()
                 .describedAs("topic")
                 .ofType(String.class);

Reply via email to