Bug Report: delete Command insufficient Error Message for Extra Parameters
Title: delete command fails to handle extra parameters correctly and provides unhelpful error message.
Steps to Reproduce
- Launch LegacyLink.
- Enter the command:
delete 1 1
Expected Behavior
- The application should detect the extra parameter and display a clear, specific error message, such as:
"Invalid command format! The delete command accepts only one parameter: delete INDEX."
- The command should only accept a single integer as the index, with no additional spaces between the integers.
Actual Behavior
-
The application shows a generic error message:
' delete: Deletes the person identified by the index number used in the displayed person list.
Parameters: INDEX (must be a positive integer)
Example: delete 1`
-
The error message does not explicitly point out the issue of having extra parameters, leaving the user unclear about what went wrong.
Severity
severity.Low
Type
type.FunctionalityBug
Why This Is a Problem
- Ambiguous Error Feedback: The current error message does not explain that the command failed due to extra parameters, leading to user confusion.
- Command Format Integrity: The
delete command should strictly enforce the rule of accepting only one integer parameter with no spaces or additional inputs.
- User Frustration: Users may struggle to identify the cause of the error, especially if they accidentally include extra spaces or numbers.
Suggestions for Improvement
- Enhance error message clarity to explicitly state that extra parameters are not allowed. For example:
"Invalid command format! The delete command accepts only one parameter: delete INDEX."
- Implement stricter validation to ensure the command format only accepts a single integer with no additional spaces or parameters.
- Add test cases to ensure the error handling logic properly identifies and responds to commands with extra parameters.

Bug Report:
deleteCommand insufficient Error Message for Extra ParametersTitle:
deletecommand fails to handle extra parameters correctly and provides unhelpful error message.Steps to Reproduce
delete 1 1Expected Behavior
"Invalid command format! The
deletecommand accepts only one parameter:delete INDEX."Actual Behavior
The application shows a generic error message:
' delete: Deletes the person identified by the index number used in the displayed person list.
Parameters: INDEX (must be a positive integer)
Example: delete 1`
The error message does not explicitly point out the issue of having extra parameters, leaving the user unclear about what went wrong.
Severity
severity.LowType
type.FunctionalityBugWhy This Is a Problem
deletecommand should strictly enforce the rule of accepting only one integer parameter with no spaces or additional inputs.Suggestions for Improvement
"Invalid command format! The
deletecommand accepts only one parameter:delete INDEX."