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?a=commitdiff_plain;h=fe8aa69b67d4085cc1c7a543a704c26f535a32b8;p=p5sagit%2Flocal-lib.git 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;