add lib finding to scripts
[scpubgit/App-EzPz.git] / bin / ezpz-repl
index fff851c..e004a73 100755 (executable)
@@ -1,9 +1,13 @@
 #!/usr/bin/env perl
 
+use lib (-d 'lib' ? ('lib') : ());
 use File::Which;
 use Email::EzPz::List;
 use strictures 1;
 
+die "Usage: ezpz-repl ezmlm-bindir list-dir"
+  unless @ARGV == 2;
+
 {
   package Eval::WithLexicals::Scratchpad;