use IO::Socket::INET;
my $debug = 1;
-
my $listen = '127.0.0.1:9000';
+my $reader;
+
+use Getopt::Long;
-my $reader = shift @ARGV;
+GetOptions(
+ 'debug!' => \$debug,
+ 'listen=s', => \$listen,
+ 'reader=s', => \$reader,
+) || die $!;
use lib 'lib';
use RFID::Biblio::RFID501;