Open nus-pe-bot opened 3 years ago
Thank you for the bug report. However, this is the expected behaviour of our app as "-1" will be treated as a flag (refer to UG) , while "100" is treated as an index that may be invalid if size of food list is <100.
Essentially, the parser throws this error since it treats -1 as a flag (like -t, -n, ...).
Therefore, we will be rejecting this as a bug as the "issue" follows the expected behaviour.
--
delete -1 shows Unrecognized option: -1 delete 100 shows invalid index
[original: nus-cs2103-AY2021S1/pe-interim#5929]