Bug 16187: accept --verbose and -h
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 20 Oct 2017 19:15:46 +0000 (16:15 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 20 Oct 2017 19:51:25 +0000 (16:51 -0300)
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
misc/cronjobs/holds/cancel_unfilled_holds.pl

index 08c2029..407bc9c 100755 (executable)
@@ -90,12 +90,12 @@ my $verbose      = 0;
 my $confirm      = 0;
 
 GetOptions(
-    'help|?'    => \$help,
-    'days=s'    => \$days,
-    'library=s' => \@branchcodes,
-    'holidays'  => \$use_calendar,
-    'v'         => \$verbose,
-    'confirm'   => \$confirm,
+    'h|help|?'   => \$help,
+    'days=s'     => \$days,
+    'library=s'  => \@branchcodes,
+    'holidays'   => \$use_calendar,
+    'v|verbosev' => \$verbose,
+    'confirm'    => \$confirm,
 ) or pod2usage(1);
 pod2usage(1) if $help;