Steps to reproduce
1) enter clear-doctor command
2) after typing command, add any argument (eg: dr who)
Expected
throw a error saying invalid command, as user could be using clear-doctor to delete a dr rather than delete-doctor.
Maybe if invalid argument is detected, clear-doctor throw a warning to the user, instead of clearing everything.
Actual
clear-doctor clears all drs regardless of invalid argument
Bug Name: clear-doctor command accepts invalid arguments
Steps to reproduce 1) enter clear-doctor command 2) after typing command, add any argument (eg: dr who)
Expected throw a error saying invalid command, as user could be using clear-doctor to delete a dr rather than delete-doctor. Maybe if invalid argument is detected, clear-doctor throw a warning to the user, instead of clearing everything.
Actual clear-doctor clears all drs regardless of invalid argument
Screenshots
[original: nus-cs2103-AY2021S2/pe-interim#2045] [original labels: severity.Medium type.FunctionalityBug]