Skip to content

Commit

Permalink
Merge pull request #101 from HengShuHong/master
Browse files Browse the repository at this point in the history
edit help message
  • Loading branch information
HengShuHong committed Apr 4, 2024
2 parents 066333f + 2b26865 commit d7fab67
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/main/java/common/Messages.java
Original file line number Diff line number Diff line change
Expand Up @@ -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" +
Expand All @@ -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" +
Expand Down

0 comments on commit d7fab67

Please sign in to comment.