[
https://issues.apache.org/jira/browse/CASSANDRA-20790?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Maxim Muzafarov updated CASSANDRA-20790:
----------------------------------------
Description:
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
was:
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
> 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: [email protected]
For additional commands, e-mail: [email protected]