From 70519c28e09c978b0fce04d276b91887b69ae0b9 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Wed, 22 Apr 2015 12:33:29 +0200 Subject: [PATCH] support SID,content arguemnts --- scripts/program.pl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/program.pl b/scripts/program.pl index b0fc125..921153d 100755 --- a/scripts/program.pl +++ b/scripts/program.pl @@ -29,6 +29,10 @@ GetOptions( ) || die $!; my ( $sid, $content ) = @ARGV; +if ( $sid =~ m/.+,.+/ && ! defined $content ) { + ( $sid, $content ) = split(/,/, $sid); +} + die "usage: $0 [--reader regex_filter] [--afi 214] [--type 1] E0_RFID_SID [barcode]\n" unless $sid && ( $content || $afi || $blank ); $hash->{content} = $content if defined $content; -- 2.20.1