You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Maxim Muzafarov (Jira)" <ji...@apache.org> on 2026/02/15 19:22:00 UTC

[jira] [Commented] (CASSANDRA-20790) Refactor --print-port option in the nodetool commands from global to command-specific

    [ https://issues.apache.org/jira/browse/CASSANDRA-20790?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18058760#comment-18058760 ] 

Maxim Muzafarov commented on CASSANDRA-20790:
---------------------------------------------

https://pre-ci.cassandra.apache.org/job/cassandra/399/

> Refactor --print-port option in the nodetool commands from global to command-specific
> -------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-20790
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-20790
>             Project: Apache Cassandra
>          Issue Type: Improvement
>          Components: Tool/nodetool
>            Reporter: Maxim Muzafarov
>            Assignee: Maxim Muzafarov
>            Priority: Normal
>             Fix For: 5.x
>
>
> The --print-port option is currently defined as a global option in the nodetool hierarchy, but is only used by a small subset of commands (~9 out of 100+). This creates unnecessary complexity in the global command hierarchy view and should be refactored to be command-specific while maintaining backward compatibility.
> h3. Proposed Solution
>  # Remove --print-port from global options in NodetoolCommand
>  # Add --print-port option to each command that needs it
>  # Maintain backward compatibility by ensuring both syntaxes supported:
> ./nodetool --print-port subcommand (current)
> ./nodetool subcommand --print-port (new)
>  # Update direct access patterns (like in RemoveNode.Status) to use the local option



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org