aboutsummaryrefslogtreecommitdiff
path: root/spark-common/src/main/java/me
diff options
context:
space:
mode:
authorLuck <git@lucko.me>2018-12-31 19:52:23 +0000
committerLuck <git@lucko.me>2018-12-31 19:52:23 +0000
commitad7cfb3430dcfbd8655538a81e725ea049e2bcf5 (patch)
tree48af6508926df58c7fb1c66c8b4e5dcdd3678957 /spark-common/src/main/java/me
parent4bad610d9bca2aa1eed0e6c9ee231efe2e9f2798 (diff)
downloadspark-ad7cfb3430dcfbd8655538a81e725ea049e2bcf5.tar.gz
spark-ad7cfb3430dcfbd8655538a81e725ea049e2bcf5.tar.bz2
spark-ad7cfb3430dcfbd8655538a81e725ea049e2bcf5.zip
Tab complete for --regex flag
Diffstat (limited to 'spark-common/src/main/java/me')
-rw-r--r--spark-common/src/main/java/me/lucko/spark/common/command/modules/SamplerModule.java4
1 files changed, 2 insertions, 2 deletions
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<S> implements CommandModule<S> {
}
})
.tabCompleter((platform, sender, arguments) -> {
- List<String> opts = new ArrayList<>(Arrays.asList("--timeout", "--interval",
- "--not-combined", "--only-ticks-over", "--include-line-numbers"));
+ List<String> 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