Spring Roo
  1. Spring Roo
  2. ROO-1732

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

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor 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)

        Activity

        Hide
        Alan Stewart added a comment - - edited

        Fixed in Git ID cbafdb37d63fba9f1f186fab7af1e6ea37451f21 and dd597f2abebad59156f416061b4eb283a8ebd1f4

        Show
        Alan Stewart added a comment - - edited Fixed in Git ID cbafdb37d63fba9f1f186fab7af1e6ea37451f21 and dd597f2abebad59156f416061b4eb283a8ebd1f4

          People

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

            Dates

            • Created:
              Updated:
              Resolved: