diff --git a/baremaps-cli/src/main/java/org/apache/baremaps/cli/map/Init.java b/baremaps-cli/src/main/java/org/apache/baremaps/cli/map/Init.java index f1a342848..3c9be06bb 100644 --- a/baremaps-cli/src/main/java/org/apache/baremaps/cli/map/Init.java +++ b/baremaps-cli/src/main/java/org/apache/baremaps/cli/map/Init.java @@ -50,6 +50,10 @@ public class Init implements Callable { @Override public Integer call() throws Exception { + if (style == null && tileset == null) { + logger.info("No configuration file specified."); + return 0; + } if (style != null) { Style styleObject = new Style(); styleObject.setName("Baremaps");