diff options
author | ivan <ivan> | 2009-01-02 22:03:58 +0000 |
---|---|---|
committer | ivan <ivan> | 2009-01-02 22:03:58 +0000 |
commit | 1d5f7cb129a7fade6ef9283977b2781ece183797 (patch) | |
tree | f8ba435b56ad545b76210f6509432f1fe106599d /bin/cdr.import | |
parent | 957f8b907dd6823d8ecc5a93ee9985607b9756bd (diff) |
add troop CDRs, RT#4413
Diffstat (limited to 'bin/cdr.import')
-rw-r--r-- | bin/cdr.import | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/cdr.import b/bin/cdr.import index 5c5e6ab63..b2e8d9127 100644 --- a/bin/cdr.import +++ b/bin/cdr.import @@ -1,7 +1,7 @@ #!/usr/bin/perl # # Usage: -# cdr.import user format <filename +# cdr.import user format filename # use strict; @@ -14,12 +14,12 @@ adminsuidsetup $user; my $format = shift or die &usage; my $error = FS::cdr::batch_import( { - 'filehandle' => *STDIN{IO}, - 'format' => $format, + 'file' => shift, + 'format' => $format, } ); die $error if $error; sub usage { - "Usage: \n cdr.import user format <filename\n"; + "Usage: \n cdr.import user format filename\n"; } |