You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lens.apache.org by "Amareshwari Sriramadasu (JIRA)" <ji...@apache.org> on 2015/01/30 11:27:34 UTC

[jira] [Created] (LENS-256) lens-cli should not use single parameter for two values

Amareshwari Sriramadasu created LENS-256:
--------------------------------------------

             Summary: lens-cli should not use single parameter for two values
                 Key: LENS-256
                 URL: https://issues.apache.org/jira/browse/LENS-256
             Project: Apache Lens
          Issue Type: Improvement
          Components: client
            Reporter: Amareshwari Sriramadasu
             Fix For: 2.1


We have code like the following in many places in cli :

{noformat}
  @CliCommand(value = "update storage", help = "update storage")
  public String updateStorage(
      @CliOption(key = { "", "storage" }, mandatory = true, help = "<storage-name> <path to storage-spec>") String specPair) {
    Iterable<String> parts = Splitter.on(' ').trimResults().omitEmptyStrings().split(specPair);
{noformat}

It should take separate parameters for each value than doing split on space



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)