Update Existing pattern usage

This commit is contained in:
Jesse Boyd 2018-08-16 00:14:03 +10:00
parent 7ed96ec358
commit 19125bee5f
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -48,7 +48,9 @@ public class PatternCommands extends MethodCommands {
@Command(
aliases = {"#existing", "#*", "*", ".*"},
desc = "Use the block that is already there")
desc = "Use the block that is already there",
usage = "[properties]"
)
public Pattern existing(Extent extent, @Optional String properties) { // TODO FIXME , @Optional String properties
if (properties == null) return new ExistingPattern(extent);
return new PropertyPattern(extent).addRegex(".*[" + properties + "]");