[
https://issues.apache.org/jira/browse/CASSANDRA-20214?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17915817#comment-17915817
]
Bernardo Botella Corbi commented on CASSANDRA-20214:
----------------------------------------------------
+1 (nb)
> 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
> Priority: Normal
> Fix For: 4.0.x, 4.1.x, 5.0.x, 5.x
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> 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: [email protected]
For additional commands, e-mail: [email protected]