Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Reorder use line and don't quote hash keys

Just make it a bit tidier
  • Loading branch information...
commit e25c71309e4fb51a6089242fc810d892d615f0fa 1 parent ea63886
@afresh1 authored
Showing with 9 additions and 11 deletions.
  1. +9 −11 rt-ticket-importer
View
20 rt-ticket-importer
@@ -14,28 +14,26 @@ use lib (
);
use RT::Interface::CLI qw(CleanEnv GetCurrentUser);
-use RT::Ticket;
-use RT::User;
use RT::Attachment;
+use RT::Ticket;
use RT::Transaction;
-use MIME::Base64;
-
-use Data::Dumper;
+use RT::User;
+use Getopt::Std;
+use MIME::Base64;
use XML::Simple;
use strict;
-
-use Getopt::Std;
+use warnings;
my %opts;
getopts( 'c:r:d:h', \%opts );
-my $cf = $opts{'c'};
-my $rtname = $opts{'r'};
-my $directory = $opts{'d'};
+my $cf = $opts{c};
+my $rtname = $opts{r};
+my $directory = $opts{d};
-unless ( !$opts{'h'} && $cf && $rtname && $directory ) {
+unless ( !$opts{h} && $cf && $rtname && $directory ) {
print
"rt-ticket-importer -d <directory> -r <source RT name> -c <CustomfieldId>\n";
exit;
Please sign in to comment.
Something went wrong with that request. Please try again.