From 0682e0c50425f45a289b47b7b93a37fd29e47d59 Mon Sep 17 00:00:00 2001 From: Kaley Date: Sat, 27 Jul 2024 12:49:20 +0200 Subject: [PATCH] suggest full variants --- src/main/java/org/comroid/api/func/util/Command.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/comroid/api/func/util/Command.java b/src/main/java/org/comroid/api/func/util/Command.java index e0e8caa5..30732e99 100644 --- a/src/main/java/org/comroid/api/func/util/Command.java +++ b/src/main/java/org/comroid/api/func/util/Command.java @@ -220,11 +220,11 @@ public Stream autoFill(Usage usage, String argName, String currentValue) if (!currentValue.isEmpty()) { var last = chars[chars.length - 1]; if (Character.isDigit(last)) - return of("m", "h", "d", "w", "mo", "y") + return of("min", "h", "d", "w", "mon", "y") .distinct() .map(suffix -> currentValue + suffix); } - return of("5m", "6h", "3d", "2w", "1y"); + return of("5m", "6h", "3d", "2w", "6mon", "1y"); } }