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)