Skip to content

Commit

Permalink
Add jar file v2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
daryltay415 committed Apr 3, 2024
1 parent b33ae42 commit 7474b7b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Manifest-Version: 1.0
Main-Class: seedu.duke.Duke
Main-Class: seedu.omnitravel.omnitravel.OmniTravel

4 changes: 2 additions & 2 deletions src/main/java/seedu/omnitravel/parser/Parser.java
Original file line number Diff line number Diff line change
Expand Up @@ -308,11 +308,11 @@ public static void removeExpenseCommand(String[] command, TravelActivityList lis
public static void totalExpenseCommand(String line, TravelActivityList list) throws OmniException {
String[] command = line.split("/type");
if (command.length < 1 || command.length > 2) {
throw new OmniException("Please check your command is in the format totalexpense [/tag TYPE]");
throw new OmniException("Please check your command is in the format totalexpense [/type TYPE]");
}
if (command.length == 1) {
if(!command[0].trim().equals("totalexpense")) {
throw new OmniException("Please check your command is in the format totalexpense [/tag TYPE]");
throw new OmniException("Please check your command is in the format totalexpense [/type TYPE]");
}
list.totalExpense("all");
} else {
Expand Down

0 comments on commit 7474b7b

Please sign in to comment.