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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to