Skip to content

Commit

Permalink
Edit accord to comment
Browse files Browse the repository at this point in the history
  • Loading branch information
tayruxin committed Nov 14, 2023
1 parent 653d257 commit 081bb5f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/DeveloperGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -1009,8 +1009,9 @@ Currently, the user can only delete one company at once. However, there will be

**Proposed Enhancement**

Enable the user to input multiple indices when attempting to delete entries. Users can separate each index with a comma. If the user wishes to delete a range of indices, they can use a dash, to indicate the range. The format to delete a range of companies: `INDEX_START - INDEX_END`.
Enable the user to input multiple indices when attempting to delete entries. Users can separate each index with a comma. If the user wishes to delete a range of indices, they can use a dash, to indicate the range. The format to delete a range of companies is `INDEX_START - INDEX_END`.
The `DeleteCommandParser` will split the string by commas and remove the companies corresponding to the specified indices. There will also be checks to see if the user keyed in the same index more than once. If the same index is keyed in more than once, the parser will accept the input but treat it as if the user only keyed in that same index once.
If the user keys in a range of indices, the parser will check if the start index is smaller than the end index. If the start index is larger than the end index, an error message will be returned to the user. Besides, if INDEX_END is larger than the size of the list, an error message will also be returned to the user. INDEX_START and INDEX_END must be positive integers.

**Examples**

Expand Down

0 comments on commit 081bb5f

Please sign in to comment.