expected: index to take precendence like addv command
actual
Invalid command format!
edit: Edits the details of the patient identified by the index number used in the displayed patient list. Existing values will be overwritten by the input values.
Parameters: INDEX (must be a positive integer) [n/NAME] [p/PHONE] [e/EMAIL] [a/ADDRESS] [b/DATEOFBIRTH] [s/SEX] [o/APPOINTMENT]
Example: edit 1 p/91234567 e/johndoe@example.com
reason
the ug did say parameter can be accepted in any order
steps to reproduce: edit n/John Doe 8 p/987654
expected: index to take precendence like addv command
actual Invalid command format! edit: Edits the details of the patient identified by the index number used in the displayed patient list. Existing values will be overwritten by the input values. Parameters: INDEX (must be a positive integer) [n/NAME] [p/PHONE] [e/EMAIL] [a/ADDRESS] [b/DATEOFBIRTH] [s/SEX] [o/APPOINTMENT] Example: edit 1 p/91234567 e/johndoe@example.com
reason the ug did say parameter can be accepted in any order