Mmuzaf commented on code in PR #2497:
URL: https://github.com/apache/cassandra/pull/2497#discussion_r2200652037


##########
src/java/org/apache/cassandra/tools/nodetool/TruncateHints.java:
##########
@@ -17,17 +17,18 @@
  */
 package org.apache.cassandra.tools.nodetool;
 
-import static org.apache.commons.lang3.StringUtils.EMPTY;
-import io.airlift.airline.Arguments;
-import io.airlift.airline.Command;
-
 import org.apache.cassandra.tools.NodeProbe;
-import org.apache.cassandra.tools.NodeTool.NodeToolCmd;
+import org.apache.cassandra.tools.nodetool.layout.CassandraUsage;
+import picocli.CommandLine.Command;
+import picocli.CommandLine.Parameters;
+
+import static org.apache.commons.lang3.StringUtils.EMPTY;
 
 @Command(name = "truncatehints", description = "Truncate all hints on the 
local node, or truncate hints for the endpoint(s) specified.")
-public class TruncateHints extends NodeToolCmd
+public class TruncateHints extends AbstractCommand
 {
-    @Arguments(usage = "[endpoint ... ]", description = "Endpoint address(es) 
to delete hints for, either ip address (\"127.0.0.1\") or hostname")
+    @CassandraUsage(usage = "[endpoint ... ]", description = "Endpoint 
address(es) to delete hints for, either ip address (\"127.0.0.1\") or hostname")
+    @Parameters(index = "0", arity = "0..1", description = "Endpoint 
address(es) to delete hints for, either ip address ('127.0.0.1') or hostname")

Review Comment:
   no, the command processes as a single arg.
   the description has been adjusted.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: pr-unsubscr...@cassandra.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscr...@cassandra.apache.org
For additional commands, e-mail: pr-h...@cassandra.apache.org

Reply via email to