Permalink
Browse files

Reorder use line and don't quote hash keys

Just make it a bit tidier
  • Loading branch information...
1 parent ea63886 commit e25c71309e4fb51a6089242fc810d892d615f0fa @afresh1 committed Aug 11, 2012
Showing with 9 additions and 11 deletions.
  1. +9 −11 rt-ticket-importer
View
@@ -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;

0 comments on commit e25c713

Please sign in to comment.