From 6f7a334c96026dee3f6fae54eb12f7cbd01159b8 Mon Sep 17 00:00:00 2001 From: Nixon Widjaja <69686938+nixonwidjaja@users.noreply.github.com> Date: Mon, 13 Nov 2023 21:52:29 +0800 Subject: [PATCH 1/2] Update UserGuide.md --- docs/UserGuide.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/UserGuide.md b/docs/UserGuide.md index 3895131792a..b49cc02c549 100644 --- a/docs/UserGuide.md +++ b/docs/UserGuide.md @@ -270,6 +270,7 @@ Format: `leave INDEX m/MONTHS` - The `INDEX` **must be a positive integer** 1,2,3, ... - The `MONTHS` refers to the month of the leave the employee is taking in integer format (between 1-12). - Positive `MONTHS` add leaves on the specified months and negative `MONTHS` remove them. +- Trailing commas in `MONTHS` (`leave 1 m/1,2,3,,,`) will be ignored, but empty months elsewhere (`leave 1 m/1,,,2`) will raise an error. Examples: - `list` followed by `leave 1 m/3,4` adds leaves in March and April for the 1st employee in the list. From 2abc1d102909852cf453cd383f66ffd433b9bbbf Mon Sep 17 00:00:00 2001 From: Nixon Widjaja <69686938+nixonwidjaja@users.noreply.github.com> Date: Mon, 13 Nov 2023 22:14:58 +0800 Subject: [PATCH 2/2] Update UserGuide.md --- docs/UserGuide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/UserGuide.md b/docs/UserGuide.md index b49cc02c549..00ed3050094 100644 --- a/docs/UserGuide.md +++ b/docs/UserGuide.md @@ -377,7 +377,7 @@ Executing command: `sort name desc` ### Undoing previous commands: `undo` -Undo the most recent commands that modified the employee list, i.e., `add`, `edit`, `delete`, `leave`, `clear`, `sort`, `redo` commands. +Undo the most recent commands that modified the employee list, i.e., `add`, `edit`, `delete`, `leave`, `reset_leaves`, `clear`, `sort`, `redo` commands. Format: `undo`