From ad7cfb3430dcfbd8655538a81e725ea049e2bcf5 Mon Sep 17 00:00:00 2001 From: Luck Date: Mon, 31 Dec 2018 19:52:23 +0000 Subject: Tab complete for --regex flag --- .../java/me/lucko/spark/common/command/modules/SamplerModule.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'spark-common/src/main/java/me') diff --git a/spark-common/src/main/java/me/lucko/spark/common/command/modules/SamplerModule.java b/spark-common/src/main/java/me/lucko/spark/common/command/modules/SamplerModule.java index fe719eb..7b456ac 100644 --- a/spark-common/src/main/java/me/lucko/spark/common/command/modules/SamplerModule.java +++ b/spark-common/src/main/java/me/lucko/spark/common/command/modules/SamplerModule.java @@ -171,8 +171,8 @@ public class SamplerModule implements CommandModule { } }) .tabCompleter((platform, sender, arguments) -> { - List opts = new ArrayList<>(Arrays.asList("--timeout", "--interval", - "--not-combined", "--only-ticks-over", "--include-line-numbers")); + List opts = new ArrayList<>(Arrays.asList("--timeout", "--regex", + "--not-combined", "--interval", "--only-ticks-over", "--include-line-numbers")); opts.removeAll(arguments); opts.add("--thread"); // allowed multiple times -- cgit