nus-cs2103-AY2425S1 / pe-dev-response

0 stars 0 forks source link

No error/warning about irrelevant prefix #2152

Open nus-pe-bot opened 1 week ago

nus-pe-bot commented 1 week ago

Summary

MB3 does not warn the user/throw an error about irrelevant prefixes being passed as an input.

Steps to reproduce

Run this command for example: addAllergy i/S1234567C al/Peanutsss !/HIGH

Expected

Error about passing irrelevant flag, rather than treating the flag as part of the input string.

Observed

Treats the flag as part of the input string and throws the relevant error, which can be misleading. Screenshot 2024-11-15 at 5.30.29 PM.png

Tester Information

Apple M2 Pro 32 GB Java Version: openjdk version "17.0.11" 2024-04-16 LTS OpenJDK Runtime Environment Zulu17.50+19-CA (build 17.0.11+9-LTS) OpenJDK 64-Bit Server VM Zulu17.50+19-CA (build 17.0.11+9-LTS, mixed mode, sharing)


[original: nus-cs2103-AY2425S1/pe-interim#917] [original labels: severity.Low type.FunctionalityBug]

hweinian commented 1 week ago

Team's Response

No details provided by team.

Duplicate status (if any):

--