Skip to content

Commit

Permalink
Merge pull request #87 from winsonheng/branch-export-import
Browse files Browse the repository at this point in the history
Update usage for import and export
  • Loading branch information
winsonheng authored Mar 30, 2023
2 parents bdcbba8 + 0648fe7 commit 3a0cd69
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ public class ExportCommand extends Command {
//CHECKSTYLE.ON: VisibilityModifier

public static final String MESSAGE_USAGE = commandWords + ": Exports data into a csv file at "
+ "a location of your choice.";
+ "a location of your choice.\n"
+ "Type \"export\" or \"export shown\" to export only the filtered contacts shown.\n"
+ "Type \"export all\" to export all contacts, even if they are not shown in the filtered list.";

public static final String FILE_DESCRIPTION = "CSV Files";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ public class ImportCommand extends Command {
public static List<String> commandWords = new ArrayList<String>(Arrays.asList("import", "i"));
//CHECKSTYLE.ON: VisibilityModifier

public static final String MESSAGE_USAGE = commandWords + ": Imports customer data from an existing dataset.";
public static final String MESSAGE_USAGE = commandWords + ": Imports customer data from an existing dataset.\n"
+ "Type \"import\" or \"import combine\" to combine the existing data with the imported dataset.\n"
+ "Type \"import reset\" to reset the existing data to the imported dataset.";

public static final String FILE_DESCRIPTION = "CSV Files";

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/seedu/address/ui/HelpWindow.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ public class HelpWindow extends UiPart<Stage> {
+ " delete_tag [n/NAME] [t/TAG_NAME] delete tag of a contact\n"
+ " filter [t/TAG_NAME] show only contacts with tag\n"
+ " load [f/FILENAME] load from CSV file\n"
+ " export export contacts to CSV file\n"
+ " import import contacts from CSV file\n"
+ " export [shown|all] export contacts to CSV file\n"
+ " import [combine|reset] import contacts from CSV file\n"
+ " undo undo last operation\n"
+ " redo redo undone operation\n"
+ " mass tag NEW_TAG [t/EXISTING_TAG] add tag to users with existing tag\n"
Expand Down

0 comments on commit 3a0cd69

Please sign in to comment.