Uploaded image for project: 'Stratos'
  1. Stratos
  2. STRATOS-650

command line mode does not accept options

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0.0
    • Fix Version/s: 4.1.0 RC3
    • Component/s: CLI
    • Labels:
      None

      Description

      The CLI does not recognise the options in command line mode:

      $ java -jar $cli_jar -u admin -p admin create-tenant -u tenant1 -p secret -f John -l Doe -d tenant.com -e john@tenant.com
      Username: admin
      usage: create-tenant [-u <user name>] [-f <first name>] [-l <last name>] [-p <password>] [-d <domain name>] [-e <email>]
      

        Activity

        Hide
        snowch chris snow added a comment -

        Patch attached. I haven't committed this directly to the source tree because I'm locked out of my apache account and can't reset it due to the infra email issues.

        Show
        snowch chris snow added a comment - Patch attached. I haven't committed this directly to the source tree because I'm locked out of my apache account and can't reset it due to the infra email issues.
        Hide
        nirmal Nirmal Fernando added a comment -

        Hi Chris,

        I can see only 1 line change and have you renamed the allCommandOptions to options? But I can't find any evidence only looking at the diff.

        Show
        nirmal Nirmal Fernando added a comment - Hi Chris, I can see only 1 line change and have you renamed the allCommandOptions to options? But I can't find any evidence only looking at the diff.
        Hide
        snowch chris snow added a comment -

        Hi Nirmal, options does not contain the commands options. The fix also sets a flag saying to stop processing after hitting an unknown option (i.e. the command options). The command options (remainingArgs) are passed to the command for handling separately.

        Show
        snowch chris snow added a comment - Hi Nirmal, options does not contain the commands options. The fix also sets a flag saying to stop processing after hitting an unknown option (i.e. the command options). The command options (remainingArgs) are passed to the command for handling separately.
        Hide
        snowch chris snow added a comment -

        My account access is back now, so I have pushed this. We can roll back if it causes any issues. I had done a fair amount of testing before making this change.

        Show
        snowch chris snow added a comment - My account access is back now, so I have pushed this. We can roll back if it causes any issues. I had done a fair amount of testing before making this change.

          People

          • Assignee:
            snowch chris snow
            Reporter:
            snowch chris snow
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development