Skip to content

Commit

Permalink
Merge pull request #234 from raydenlim/branch-Fix-Bugs-PE-D
Browse files Browse the repository at this point in the history
Update UG and Message
  • Loading branch information
raydenlim authored Nov 9, 2023
2 parents 788f066 + 9e0b65c commit 2dd3cad
Show file tree
Hide file tree
Showing 6 changed files with 346 additions and 287 deletions.
612 changes: 336 additions & 276 deletions docs/UserGuide.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/main/java/seedu/address/logic/commands/EditCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ public class EditCommand extends Command {
public static final String COMMAND_WORD = "edit";

public static final String MESSAGE_USAGE = COMMAND_WORD + ": Edits the details of the person identified "
+ "by the index number used in the displayed person list. "
+ "by the student index number used in the displayed person list. "
+ "Existing values will be overwritten by the input values.\n"
+ "Parameters: INDEX (must be a positive integer) "
+ "Parameters: STUDENT_INDEX (must be a positive integer) "
+ "[" + PREFIX_NAME + "NAME] "
+ "[" + PREFIX_PHONE + "PHONE] "
+ "[" + PREFIX_EMAIL + "EMAIL] "
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ public class EditGradeCommand extends Command {
public static final String COMMAND_WORD = "editgrade";

public static final String MESSAGE_USAGE = COMMAND_WORD + ": Edits a grade to a person’s assignment identified "
+ "by the index number used in the displayed person list. "
+ "Parameters: INDEX (must be a positive integer) "
+ "by the student index number used in the displayed person list. "
+ "Parameters: STUDENT_INDEX (must be a positive integer) "
+ PREFIX_ASSIGNMENT + "ASSIGNMENT "
+ PREFIX_GRADE + "GRADE ";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ public class EditGradedTestCommand extends Command {
public static final String COMMAND_WORD = "editgradedtest";

public static final String MESSAGE_USAGE = COMMAND_WORD + ": Edits the graded test of a person, "
+ "identified by the index number used in the displayed person list. \n"
+ "Parameters: INDEX (must be a positive integer) "
+ "identified by the student index number used in the displayed person list. \n"
+ "Parameters: STUDENT_INDEX (must be a positive integer) "
+ "[" + PREFIX_READING_ASSESSMENT1 + "RA1] "
+ "[" + PREFIX_READING_ASSESSMENT2 + "RA2] "
+ "[" + PREFIX_MIDTERMS + "MIDTERMS] "
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class ViewAttendanceCommand extends Command {
public static final String COMMAND_WORD = "viewattendance";
public static final String MESSAGE_USAGE = COMMAND_WORD + ": Views the attendance of a student. "
+ "Parameters: "
+ PREFIX_NAME + "KEYWORD [MORE_KEYWORDS]...\n"
+ "[" + PREFIX_NAME + "STUDENT_NAME]...\n"
+ "Example: " + COMMAND_WORD + " "
+ PREFIX_NAME + "John Doe Alice";

Expand Down
7 changes: 3 additions & 4 deletions src/main/java/seedu/address/logic/parser/ParserUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,9 @@
*/
public class ParserUtil {

public static final String MESSAGE_INVALID_INDEX = "Index is not a non-zero unsigned integer.";
public static final String MESSAGE_INVALID_DATE = "Date is needs to be in the format dd/MM/yyyy, "
+ "or date provided does not exist.";
public static final String MESSAGE_INVALID_TIME = "Time is needs to be in the format HH:mm.";
public static final String MESSAGE_INVALID_INDEX = "Index not a non-zero unsigned integer.";
public static final String MESSAGE_INVALID_DATE = "Date needs to be in the format dd/MM/yyyy.";
public static final String MESSAGE_INVALID_TIME = "Time needs to be in the format HH:mm.";

/**
* Parses {@code oneBasedIndex} into an {@code Index} and returns it. Leading and trailing whitespaces will be
Expand Down

0 comments on commit 2dd3cad

Please sign in to comment.