diff --git a/src/java/org/apache/cassandra/tools/nodetool/GetEndpoints.java b/src/java/org/apache/cassandra/tools/nodetool/GetEndpoints.java index 3f30680951..71c9729998 100644 --- a/src/java/org/apache/cassandra/tools/nodetool/GetEndpoints.java +++ b/src/java/org/apache/cassandra/tools/nodetool/GetEndpoints.java @@ -34,7 +34,7 @@ import static org.apache.cassandra.tools.nodetool.CommandUtils.concatArgs; @Command(name = "getendpoints", description = "Print the end points that owns the key") public class GetEndpoints extends AbstractCommand { - @CassandraUsage(usage = " ", description = "The keyspace, the table, and the partition key for which we need to find the endpoint") + @CassandraUsage(usage = "
", description = "The keyspace, the table, and the partition key for which we need to find the endpoint (e.g., pk1:pk2:pk3 for compound keys)") private List args = new ArrayList<>(); @Parameters(index = "0", arity = "0..1", description = "The keyspace for which we need to find the endpoint") @@ -43,7 +43,7 @@ public class GetEndpoints extends AbstractCommand @Parameters(index = "1", arity = "0..1", description = "The table for which we need to find the endpoint") private String table; - @Parameters(index = "2", arity = "0..1", description = "The partition key for which we need to find the endpoint") + @Parameters(index = "2", arity = "0..1", description = "The partition key for which we need to find the endpoint (e.g., pk1:pk2:pk3 for compound keys)") private String key; @Mixin diff --git a/test/resources/nodetool/help/getendpoints b/test/resources/nodetool/help/getendpoints index 7eb9aef60d..92e411cd4e 100644 --- a/test/resources/nodetool/help/getendpoints +++ b/test/resources/nodetool/help/getendpoints @@ -34,4 +34,4 @@ OPTIONS
The keyspace, the table, and the partition key for which we need to - find the endpoint + find the endpoint (e.g., pk1:pk2:pk3 for compound keys)