netudima commented on code in PR #2497: URL: https://github.com/apache/cassandra/pull/2497#discussion_r2096130652
########## src/java/org/apache/cassandra/tools/nodetool/EnableHintsForDC.java: ########## @@ -20,17 +20,16 @@ import java.util.ArrayList; import java.util.List; -import io.airlift.airline.Arguments; -import io.airlift.airline.Command; import org.apache.cassandra.tools.NodeProbe; -import org.apache.cassandra.tools.NodeTool; +import picocli.CommandLine.Command; +import picocli.CommandLine.Parameters; import static com.google.common.base.Preconditions.checkArgument; @Command(name = "enablehintsfordc", description = "Enable hints for a data center that was previsouly disabled") -public class EnableHintsForDC extends NodeTool.NodeToolCmd +public class EnableHintsForDC extends AbstractCommand { - @Arguments(usage = "<datacenter>", description = "The data center to enable") + @Parameters(paramLabel = "datacenter", description = "The data center to enable") Review Comment: execute logic expects exactly one datacenter -- 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