Skip to content

Commit

Permalink
Make flags use full names as per convention
Browse files Browse the repository at this point in the history
A future update will allow for prefix-only matching separately.
For now, this is done to reduce ambiguity and allow for more flags to
be defined with no conflicts.
  • Loading branch information
wxwern committed Oct 7, 2023
1 parent 0ce01a2 commit 2cecfa4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/main/java/seedu/address/logic/parser/CliSyntax.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
*/
public class CliSyntax {

/* Prefix definitions */
public static final Flag FLAG_NAME = new Flag("n");
public static final Flag FLAG_PHONE = new Flag("p");
public static final Flag FLAG_EMAIL = new Flag("e");
public static final Flag FLAG_ADDRESS = new Flag("a");
public static final Flag FLAG_TAG = new Flag("t");
/* Flag definitions */
public static final Flag FLAG_NAME = new Flag("name");
public static final Flag FLAG_PHONE = new Flag("phone");
public static final Flag FLAG_EMAIL = new Flag("email");
public static final Flag FLAG_ADDRESS = new Flag("addr");
public static final Flag FLAG_TAG = new Flag("tag");

}

0 comments on commit 2cecfa4

Please sign in to comment.