nus-cs2103-AY2223S2 / pe-dev-response

1 stars 0 forks source link

view command allows more than 1 whitespace character between command word and index #462

Open nus-pe-bot opened 1 year ago

nus-pe-bot commented 1 year ago

image.png


[original: nus-cs2103-AY2223S2/pe-interim#580] [original labels: type.FunctionalityBug severity.VeryLow]

seadragon2000341 commented 1 year ago

Team's Response

Hello there! Thanks for highlighting the issue. The presence of additional space does not affect the parsing of commands, where it is a feature and not a bug. It is a feature that would prevent InternBuddy from rejecting commands just because the user accidentally entered some additional space. In fact, we have this feature in the rest of our commands.

For example, you can try the following (assuming you are working with our sample data):

image.png

image.png

Imagine you are the user who wants to execute the command view 1. I believe you would not want your command to be rejected if you accidentally typed an additional space between view and 1. Hence, this is a feature that aims to make the user's life easier, and not reject his commands just because of small differences in spacing.

Hope the above clarifies your doubts! Cheers!

Duplicate status (if any):

--