From 887c984edfc37ad2ab1ab9e75fe4efc406cdfc93 Mon Sep 17 00:00:00 2001 From: Bertil Chapuis Date: Fri, 17 Nov 2023 11:35:56 +0100 Subject: [PATCH] Add documentation for the cache flag --- .../src/main/java/org/apache/baremaps/cli/map/Serve.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/baremaps-cli/src/main/java/org/apache/baremaps/cli/map/Serve.java b/baremaps-cli/src/main/java/org/apache/baremaps/cli/map/Serve.java index 5fb03f5fb..a1a0f1bd3 100644 --- a/baremaps-cli/src/main/java/org/apache/baremaps/cli/map/Serve.java +++ b/baremaps-cli/src/main/java/org/apache/baremaps/cli/map/Serve.java @@ -54,7 +54,10 @@ public class Serve implements Callable { @Mixin private Options options; - @Option(names = {"--cache"}, paramLabel = "CACHE", description = "The caffeine cache directive.") + @Option(names = {"--cache"}, paramLabel = "CACHE", description = { + "The caffeine specification of the cache. " + + "For instance, 'maximumWeight=1073741824,expireAfterAccess=1h' " + + "sets a 1GB cache whose entries expires after one hour."}) private String cache = ""; @Option(names = {"--tileset"}, paramLabel = "TILESET", description = "The tileset file.",