Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-1732

SimpleParser should report error if user presents a command option unwanted by the command

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 1.1.0.RELEASE
    • Fix Version/s: 1.1.1.RELEASE
    • Component/s: @ ROO SHELL
    • Labels:
      None

      Description

      It is currently possible for a user to enter commands with command options that the command doesn't actually use. For example, this is an illegal command:

      field string --fieldName sessionName --min 3

      It is illegal because the correct command is:

      field string --fieldName sessionName --sizeMin 3

      SimpleParser should detect options presented that the resolved command doesn't use and report an error to the user without executing the command. The message should probably suggest they use tab assist and/or the "help" command to view the legal options for the command.

      (Initially assigned to Alan as he has done recent SimpleParser-related work)

        Attachments

          Activity

            People

            Assignee:
            stewarta Alan Stewart
            Reporter:
            balex Ben Alex
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: