From 6d8853c9eed91a2c08c03665b190a0531b9ef19a Mon Sep 17 00:00:00 2001 From: Daniel Asher Resnick Date: Sat, 15 Jul 2023 13:56:19 -0500 Subject: [PATCH] No default API URL, exit when not given --- wiki-map.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wiki-map.pl b/wiki-map.pl index 3a21c26..e17e752 100644 --- a/wiki-map.pl +++ b/wiki-map.pl @@ -49,6 +49,8 @@ GetOptions 'regiondir=s' => \$regiondir ); +$api_url // croak "Base API URL is required! Use --api-url to set + my $grid = HexGrid->new(defaults => { style => { 'stroke-width' => $border_width, stroke => $border_colour }, show_coords => $show_coords });