X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=lib%2FMaypole%2FCLI.pm;h=facedc12d2b27dc04bcda72a533a0bf97a582b7f;hb=6cd7a25572c93242146d8d8ce0eb3f2bbb76917e;hp=de8fab65118cfe04c3f51b2cb7e9831a2f2af362;hpb=b6e2413ee413ce21b28429c05bbcc3f516a0754a;p=maypole.git diff --git a/lib/Maypole/CLI.pm b/lib/Maypole/CLI.pm index de8fab6..facedc1 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 ); @@ -137,6 +144,8 @@ functionality. See L for these: =item send_output +=item warn + =back =cut