Skip to content

Commit

Permalink
Merge pull request AY2425S1-CS2113-W14-4#237 from cnivedit/bugfix/ord…
Browse files Browse the repository at this point in the history
…er-help

Update help message for order command
  • Loading branch information
cnivedit authored Nov 11, 2024
2 parents 82f9255 + 3a5cd9f commit a83bc47
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions src/main/java/seedu/pill/command/HelpCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -513,14 +513,26 @@ private void showOrderHelp() {

System.out.println("order: Creates a new purchase or dispense order.");
if (verbose) {
System.out.println("Usage: order <type> <item1> <quantity1> [item2 quantity2 ...] [-n \"notes\"]");
System.out.println("Usage:");
System.out.println("order <type> <item-count>");
System.out.println("<item1> <quantity1>");
System.out.println("[item2 quantity2]");
System.out.println("...");
System.out.println("[-n \"notes\"]");
System.out.println();
System.out.println(" <type> - Type of order: 'purchase' or 'dispense'");
System.out.println(" <itemN> - Name of item to order");
System.out.println(" <quantityN>- Quantity of the item");
System.out.println(" -n - Optional notes about the order");
System.out.println("\nExamples:");
System.out.println(" order purchase Aspirin 100 Bandages 50 -n \"Monthly stock replenishment\"");
System.out.println(" order dispense Paracetamol 20 -n \"Emergency room request\"");
System.out.println(" order purchase 2");
System.out.println(" Aspirin 100");
System.out.println(" Bandages 50");
System.out.println(" -n \"Monthly stock replenishment\"");
System.out.println();
System.out.println(" order dispense 1");
System.out.println(" Paracetamol 20");
System.out.println(" -n \"Emergency room request\"");
}
}

Expand Down

0 comments on commit a83bc47

Please sign in to comment.