Bug 24329: Add a test
[srvgit] / misc / import_patrons.pl
index 203ac4c..205174e 100755 (executable)
@@ -22,6 +22,7 @@ use Modern::Perl;
 use Getopt::Long;
 use Pod::Usage;
 
+use Koha::Script;
 use Koha::Patrons::Import;
 my $Import = Koha::Patrons::Import->new();
 
@@ -40,7 +41,7 @@ GetOptions(
     'm|matchpoint=s'                => \$matchpoint,
     'd|default=s'                   => \%defaults,
     'o|overwrite'                   => \$overwrite_cardnumber,
-    'p|preserve-extended-atributes' => \$ext_preserve,
+    'p|preserve-extended-attributes' => \$ext_preserve,
     'v|verbose+'                    => \$verbose,
     'h|help|?'                      => \$help,
 ) or pod2usage(2);
@@ -99,11 +100,11 @@ import_patrons.pl - CLI script to import patrons data into Koha
 
 =head1 SYNOPSIS
 
-import_patrons.pl --file /path/to/patrons.csv --matchpoint cardnumber --confirm [--default branchcode=MPL] [--overwrite] [--preserve-extended-atributes] [--verbose]
+import_patrons.pl --file /path/to/patrons.csv --matchpoint cardnumber --confirm [--default branchcode=MPL] [--overwrite] [--preserve-extended-attributes] [--verbose]
 
 =head1 OPTIONS
 
-=over8
+=over 8
 
 =item B<-h|--help>
 
@@ -129,7 +130,7 @@ Set defaults to patron fields, repeatable e.g. --default branchcode=MPL --defaul
 
 Overwrite existing patrons with new data if a match is found
 
-=item B<-p|--preserve-extended-atributes>
+=item B<-p|--preserve-extended-attributes>
 
 Retain extended patron attributes for existing patrons being overwritten
 
@@ -137,6 +138,12 @@ Retain extended patron attributes for existing patrons being overwritten
 
 Be verbose
 
+Multiple -v options increase the verbosity
+
+2 repetitions or above will report lines in error
+
+3 repetitions or above will report feedback
+
 =back
 
 =cut