Skip to content

Commit

Permalink
Update help message for order command
Browse files Browse the repository at this point in the history
  • Loading branch information
cnivedit committed Nov 11, 2024
1 parent 2e13abc commit 8ba5717
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 8ba5717

Please sign in to comment.