Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CliSyntax to match HelloFile #83

Merged
merged 1 commit into from
Oct 10, 2020

Conversation

luo-git
Copy link

@luo-git luo-git commented Oct 10, 2020

PREFIX_TAG_NAME = "t/"
PREFIX_OLD_TAG_NAME = "o/"
PREFIX_FILE_ADDRESS = "f/"
PREFIX_COMMAND = "c/"

PREFIX_TAG_NAME = "t/"
PREFIX_OLD_TAG_NAME = "o/"
PREFIX_FILE_ADDRESS = "f/"
PREFIX_COMMAND = "c/"
@luo-git luo-git added the priority.High Must do label Oct 10, 2020
@luo-git luo-git added this to the v1.2 milestone Oct 10, 2020
@codecov-io
Copy link

Codecov Report

Merging #83 into master will increase coverage by 0.03%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master      #83      +/-   ##
============================================
+ Coverage     57.46%   57.50%   +0.03%     
  Complexity      329      329              
============================================
  Files            70       70              
  Lines          1192     1193       +1     
  Branches         92       92              
============================================
+ Hits            685      686       +1     
  Misses          480      480              
  Partials         27       27              
Impacted Files Coverage Δ Complexity Δ
.../java/seedu/address/logic/commands/AddCommand.java 100.00% <ø> (ø) 8.00 <0.00> (ø)
...a/seedu/address/logic/parser/AddCommandParser.java 100.00% <100.00%> (ø) 5.00 <0.00> (ø)
...ain/java/seedu/address/logic/parser/CliSyntax.java 80.00% <100.00%> (+5.00%) 1.00 <1.00> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d1aa204...2fe7790. Read the comment docs.

Copy link

@li-s li-s left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -25,7 +26,8 @@
*/
public AddCommand parse(String args) throws ParseException {
ArgumentMultimap argMultimap =
ArgumentTokenizer.tokenize(args, PREFIX_TAG_NAME, PREFIX_FILE_ADDRESS, PREFIX_TAG);
ArgumentTokenizer.tokenize(args, PREFIX_TAG_NAME, PREFIX_FILE_ADDRESS,
PREFIX_OLD_TAG_NAME, PREFIX_COMMAND);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does add command parser need prefix_old_tag_name? Isn't the command tag f/filepath t/tagname?

@li-s
Copy link

li-s commented Oct 10, 2020

LGTM,

@li-s li-s merged commit 873fa6e into AY2021S1-CS2103T-F12-1:master Oct 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants