From: Rogan Hamby Date: Tue, 20 Mar 2018 14:50:14 +0000 (-0400) Subject: Merge branch 'mig_invoking' simplifies the invocating code and provides a fail over... X-Git-Url: http://git.equinoxoli.org/?p=migration-tools.git;a=commitdiff_plain;h=0233694c925fe916e0a094b5fc44511bd1a4e546;hp=46db98596024ccc4876d3ef5753588689ab2c7a4 Merge branch 'mig_invoking' simplifies the invocating code and provides a fail over to mig commands in profile path --- diff --git a/mig-bin/mig-reporter b/mig-bin/mig-reporter index 71c1d1f..8e9e81d 100755 --- a/mig-bin/mig-reporter +++ b/mig-bin/mig-reporter @@ -1,5 +1,40 @@ #!/usr/bin/perl +############################################################################### +=pod + +=item B --analyst "Analyst Name" --report_title "Report Title" + +Generates an asciidoc file in the git working directory that can be converted to +any appropriate format. The analyst and report parameters are required. + +Optional parameters are : + +--added_page_title and --added_page_file + +If one is used both must be. The added page file can be plain text or asciidoc. This +adds an extra arbitrary page of notes to the report. Mig assumes the page file is in the mig git directory. + +--tags + +This will define a set of tags to use, if not set it will default to Circs, +Holds, Actors, Bibs, Assets & Money. + +--debug + +Gives more information about what is happening. + +--reports_xml + +Allows you to override the default evergreen_staged_report.xml in the mig-xml folder. + + +=back + +=cut + +############################################################################### + use strict; use warnings; @@ -20,6 +55,7 @@ use Mig; use open ':encoding(utf8)'; pod2usage(-verbose => 2) if defined $ARGV[0] && $ARGV[0] eq '--help'; +pod2usage(-verbose => 1) if ! $ARGV[1]; my $analyst; my $next_arg_is_analyst;