IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 20, 2006, 4:38:17 PM (20 years ago)
Author:
jhoblitt
Message:

add --verbose option

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/PS-IPP-Metadata-Config/scripts/mdc-dump

    r5201 r6097  
    33# Copyright (C) 2005  Joshua Hoblitt
    44#
    5 # $Id: mdc-dump,v 1.1 2005-09-30 01:32:02 jhoblitt Exp $
     5# $Id: mdc-dump,v 1.2 2006-01-21 02:38:17 jhoblitt Exp $
    66
    77use strict;
     
    1717use Pod::Usage qw( pod2usage );
    1818
    19 my ( $file, $overwrite );
     19my ( $file, $overwrite, $verbose );
    2020GetOptions(
    2121    'file=s'    => \$file,
    2222    'overwrite' => \$overwrite,
     23    'verbose'   => \$verbose,
    2324) || pod2usage( 2 );
    2425
     
    2829$file = '-' unless $file;
    2930
     31if (defined $verbose) {
     32    $::RD_TRACE = 1;
     33    $::RD_HINT = 1;
     34}
    3035my $md_parser = PS::IPP::Metadata::Config->new;
    3136
     
    5964=head1 SYNOPSIS
    6065
    61     mddump.pl [--overwrite] --file <filename>
     66    mddump.pl [--overwrite] [--verbose] --file <filename>
    6267
    6368    or
    6469
    65     cat <filename> | mddump.pl [--overwrite]
     70    cat <filename> | mddump.pl [--overwrite] [--verbose]
    6671
    6772    or
     
    8792A flag that turns L<PS::IPP::Metadata::Config>'s overwrite behavior on.
    8893Overwrite is always off unless this flag is specified.
     94
     95=item * --verbose | -v
     96
     97A flag that turns L<Parse::RecDescent>'s C<RD_TRACE> and C<RD_HINT> tracing
     98flags.  verbose is always off unless this flag is specified.
    8999
    90100=item * --help | -h | -?
Note: See TracChangeset for help on using the changeset viewer.