Skip to content

Commit

Permalink
Merge pull request #323 from ong6/Find-Command
Browse files Browse the repository at this point in the history
Command fixed another small bug with find
  • Loading branch information
ong6 committed Mar 21, 2021
2 parents 0bf8b39 + d6008c1 commit a276db4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ public FindCommand parse(String args) throws ParseException {
String[] nameKeywords;

//Case 1: If no prefix present (general search)
if (argMultimap.arePrefixesPresent()) {
if (!argMultimap.arePrefixesPresent
(PREFIX_METHOD, PREFIX_ADDRESS, PREFIX_DATA, PREFIX_HEADER, PREFIX_TAG)) {
nameKeywords = getNameKeywords(args);
return new FindCommand(new EndPointContainsKeywordsPredicate(Arrays.asList(nameKeywords)));
}
Expand Down

0 comments on commit a276db4

Please sign in to comment.