Open yhanyi opened 1 week ago
MB3 does not warn the user/throw an error about irrelevant prefixes being passed as an input.
Run this command for example: addAllergy i/S1234567C al/Peanutsss !/HIGH
addAllergy i/S1234567C al/Peanutsss !/HIGH
Error about passing irrelevant flag, rather than treating the flag as part of the input string.
Treats the flag as part of the input string and throws the relevant error, which can be misleading.
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)
Your response not required for this bug as the team has accepted the bug as it is.
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.
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)