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 2025/01/15 22:48:00 UTC
[jira] [Created] (CASSANDRA-20214) The short -p option for the copyData arg in the Import node tool command conflicts with the --port option
Maxim Muzafarov created CASSANDRA-20214:
-------------------------------------------
Summary: The short -p option for the copyData arg in the Import node tool command conflicts with the --port option
Key: CASSANDRA-20214
URL: https://issues.apache.org/jira/browse/CASSANDRA-20214
Project: Apache Cassandra
Issue Type: Bug
Components: Tool/nodetool
Reporter: Maxim Muzafarov
Assignee: Maxim Muzafarov
In the Import nodetool command:
{code}
@Option(title = "copy_data",
name = {"-p", "--copy-data"},
description = "Copy data from source directories instead of moving them")
private boolean copyData = false;
{code}
on the other hand, the command has another option:
{code}
@Option(type = OptionType.GLOBAL, name = {"-p", "--port"}, description = "Remote jmx agent port number")
private String port = "7199";
{code}
If the -p option is set from the command line for the nodetool, it fails at the CLI parsing stage because it can't tell which option to use. Suggestion: rename the short name for the option copyData since it's not used by users and fails.
--
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