Steps to reproduce:
addv n/John Doe d/25/2/2024 c/High Fever v/High
expected: indicates missing phone number
actual: throws same error message
Invalid command format!
addv: adds a visit to the specified patient.
Parameters: INDEX (must be a positive integer) [d/DATE OF VISIT] [c/CONDITION] [v/SEVERITY]
OR [n/NAME] [p/PHONE] [d/DATE OF VISIT] [c/CONDITION] [v/SEVERITY]
Example: addv 1 d/25/2/2024 c/Mild Fever v/Low
I feel since it is quite manageable to catch the missing argument, like the effort to do so is pretty minimal we may try to catch it so that the user do not have to find out what the missing arguments is.
Steps to reproduce: addv n/John Doe d/25/2/2024 c/High Fever v/High
expected: indicates missing phone number
actual: throws same error message Invalid command format! addv: adds a visit to the specified patient. Parameters: INDEX (must be a positive integer) [d/DATE OF VISIT] [c/CONDITION] [v/SEVERITY] OR [n/NAME] [p/PHONE] [d/DATE OF VISIT] [c/CONDITION] [v/SEVERITY] Example: addv 1 d/25/2/2024 c/Mild Fever v/Low
I feel since it is quite manageable to catch the missing argument, like the effort to do so is pretty minimal we may try to catch it so that the user do not have to find out what the missing arguments is.