From 2b2686599b41bae84521cefb25ddb7838e839153 Mon Sep 17 00:00:00 2001 From: Shu Date: Thu, 4 Apr 2024 11:46:03 +0800 Subject: [PATCH] edit help message --- src/main/java/common/Messages.java | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/main/java/common/Messages.java b/src/main/java/common/Messages.java index 6e2061e8ac..dc42c8015b 100644 --- a/src/main/java/common/Messages.java +++ b/src/main/java/common/Messages.java @@ -9,12 +9,12 @@ public class Messages { "|_________________________________________________________________________________________|\n" + "| Commands | Format |\n" + "|----------|------------------------------------------------------------------------------|\n" + - "| list | list |\n" + + "|list items| list_items |\n" + "|----------|------------------------------------------------------------------------------|\n" + "| add | add [ITEM_NAME] qty/[QUANTITY_OF_ITEM] /[UNIT_OF_MEASUREMENT] cat/[CATEGORY] |\n" + "| | buy/[BUY_PRICE] sell/[SELL_PRICE] |\n" + "|----------|------------------------------------------------------------------------------|\n" + - "| sell | sell [ITEM_NAME] qty/[SELL_QUANTITY] price/[SELL_PRICE] |\n" + + "| sell | sell [ITEM_NAME] qty/[SELL_QUANTITY] |\n" + "|----------|------------------------------------------------------------------------------|\n" + "| edit | edit [ITEM_NAME] name/[NEW_NAME] qty/[NEW_QUANTITY] uom/[NEW_UOM] |\n" + "| | cat/[NEW_CATEGORY] |\n" + @@ -26,6 +26,15 @@ public class Messages { "| | 2. find /filter1/filter2 [KEYWORD] - to search under the filters* |\n" + "| | * (filters: item, qty, uom, cat, buy, sell) |\n" + "|----------|------------------------------------------------------------------------------|\n" + + "|promotion | promotion [ITEM_NAME] discount/[DISCOUNT] period /from [DATE] [MONTH] [YEAR] |\n" + + "| | to [DATE] [MONTH] [YEAR] time /from [TIME] /to [TIME] |\n" + + "|----------|------------------------------------------------------------------------------|\n" + + "|delete | del_promo [ITEM_NAME] |\n" + + "|promotion | |\n" + + "|----------|------------------------------------------------------------------------------|\n" + + "|list | list_promotions |\n" + + "|promotions| |\n" + + "|----------|------------------------------------------------------------------------------|\n" + "| exit | exit |\n" + "|__________|______________________________________________________________________________|\n"; public static final String INVALID_ADD_FORMAT ="Invalid command format. Please use format: " + "\n" +