nus-cs2103-AY2021S2 / pe-dev-response

0 stars 0 forks source link

Format of address #3027

Open nus-pe-bot opened 3 years ago

nus-pe-bot commented 3 years ago

Command: add -n John Doe -p 98765432 -e johnd@example.com -c Google -j Software Engineer -a 311, Clementi Ave 2, -a #02-25 -r University friend -t friends -t owesMoney

Explaination: Though it's not usual for user to type -a in address, it's better to remind this in the format of address.

Screenshot: image.png


[original: nus-cs2103-AY2021S2/pe-interim#3027] [original labels: severity.VeryLow type.DocumentationBug]

tanboonji commented 3 years ago

Team's Response

First of all, it is mentioned in our UG (under CLI Syntax -> Miscellaneous Information) that when there are repeated parameters, the last occurrence of the parameter will be taken.

image.png

Secondly, users will not type -a within their address without any purpose, unless it is part of their address, and this brings us to the last point.

In most cases where addresses have -a, they would be within the names of the street or apartment, such as North-apartment. Addresses like these with -a are accepted by A-Bash Book as shown in the example below.

(note: A-Bash Book only recognises prefix when there are spaces in front and behind the prefix, therefore the -a in North-apartment is not recognised)

address_with_hyphen.gif

Duplicate status (if any):

--