[freeside-commits] freeside/bin customer-faker,1.4,1.5
Ivan,,,
ivan at wavetail.420.am
Sun Aug 24 14:49:26 PDT 2008
Update of /home/cvs/cvsroot/freeside/bin
In directory wavetail.420.am:/tmp/cvs-serv23868
Modified Files:
customer-faker
Log Message:
add -a option for agentnum
Index: customer-faker
===================================================================
RCS file: /home/cvs/cvsroot/freeside/bin/customer-faker,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- customer-faker 6 Nov 2007 01:59:33 -0000 1.4
+++ customer-faker 24 Aug 2008 21:49:23 -0000 1.5
@@ -10,15 +10,16 @@
use FS::cust_pkg;
use FS::svc_acct;
-my $agentnum = 1;
my $refnum = 1;
my @pkgs = ( 2, 3, 4 );
#my @pkgs = ( 4, 5, 6 );
my $svcpart = 2;
-use vars qw( $opt_p );
-getopts('p:');
+use vars qw( $opt_p $opt_a );
+getopts('p:a:');
+
+my $agentnum = $opt_a || 1;
my $user = shift or die &usage;
my $num = shift or die &usage;
@@ -118,5 +119,5 @@
#---
sub usage {
- die "Usage:\n\n customer-faker [ -p payby ] user num_fakes\n";
+ die "Usage:\n\n customer-faker [ -p payby ] [ -a agentnum ] user num_fakes\n";
}
More information about the freeside-commits
mailing list