From: Graham Knop Date: Mon, 6 Jan 2014 07:35:08 +0000 (-0500) Subject: allow specifying options as normal args in shell mode X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit%2Flocal-lib.git;a=commitdiff_plain;h=fe8aa69b67d4085cc1c7a543a704c26f535a32b8;hp=c3b42e98df07a1303f967a365783c2ee0e803c76 allow specifying options as normal args in shell mode --- diff --git a/lib/local/lib.pm b/lib/local/lib.pm index 3b8869a..a8fc12f 100644 --- a/lib/local/lib.pm +++ b/lib/local/lib.pm @@ -13,6 +13,8 @@ $VERSION = eval $VERSION; sub import { my ($class, @args) = @_; + push @args, @ARGV + if $0 eq '-'; my @steps; my %opts;