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/03/01 17:08:00 UTC

[jira] [Commented] (CASSANDRA-20790) Move --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=18061963#comment-18061963 ] 

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

Commments has been fixed:

https://github.com/apache/cassandra/pull/4617
https://pre-ci.cassandra.apache.org/job/cassandra/449/#showFailuresLink

> Move --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 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