X-Git-Url: https://git.decadent.org.uk/gitweb/?p=maypole.git;a=blobdiff_plain;f=lib%2FMaypole%2FCLI.pm;h=8f8a50eb4cd0243a71ff514a644a04e652c0a9a6;hp=de8fab65118cfe04c3f51b2cb7e9831a2f2af362;hb=32ecafee815b0fd8043c0acc2c785f5748fc20ff;hpb=427f0f2ec634f60fa90e60f5d3a048b6e1fc5f8b diff --git a/lib/Maypole/CLI.pm b/lib/Maypole/CLI.pm index de8fab6..8f8a50e 100644 --- a/lib/Maypole/CLI.pm +++ b/lib/Maypole/CLI.pm @@ -26,6 +26,13 @@ sub import { sub get_template_root { $ENV{MAYPOLE_TEMPLATES} || "." } +sub warn { + my ($self,@args) = @_; + my ($package, $line) = (caller)[0,2]; + warn "[$package line $line] ", @args ; + return; +} + sub parse_location { my $self = shift; my $url = URI->new( shift @ARGV );