From acf481f6749ef187aa0edf1e7024aa51871d8129 Mon Sep 17 00:00:00 2001
From: Marcella Antania Tan
<104759709+marcellaantania@users.noreply.github.com>
Date: Sat, 30 Sep 2023 16:05:57 +0800
Subject: [PATCH] Update UserGuide.md to Include Department
---
docs/UserGuide.md | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/docs/UserGuide.md b/docs/UserGuide.md
index 7228c372eaa..3b81c2776f3 100644
--- a/docs/UserGuide.md
+++ b/docs/UserGuide.md
@@ -161,6 +161,19 @@ Examples:
- `list` followed by `claim 1 $/-500` deducts $50 from the entitlement fund of the 1st employee in the list.
- `list` followed by `claim 2 $/+60` adds $60 to the entitlement fund of the 2nd employee in the list.
+### Listing Employees of a Department: department
+
+List all employees in the specified department.
+
+Format: `department d/DEPARTMENT`
+
+- The `DEPARTMENT` refers to the department name tagged to the employees
+
+Examples:
+- `department d/Human Resource` returns a list of employees in the Human Resource department.
+- `department d/Marketing` returns a list of employees in the Marketing department.
+
+
### Clearing all entries : `clear`
Clears all entries from the address book.
@@ -217,4 +230,5 @@ _Details coming soon ..._
| **Find** | `find KEYWORD [MORE_KEYWORDS]`
e.g., `find James Jake` |
| **List** | `list` |
| **Claim** | `claim INDEX $/CLAIM_AMOUNT`
e.g., `claim 1 $/-500` |
+| **Department** | `department d/DEPARTMENT`
e.g., `department d/Human Resource` |
| **Help** | `help` |