1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
|
package VCP::Filter::identity;
=head1 NAME
VCP::Filter::identity - identity (ie noop)
=head1 SYNOPSIS
vcp <source> identity: <dest>
=head1 DESCRIPTION
A simple passthrough, used for testing to make sure that VCP::Filter
really is a pass through and that vcp can load filters.
=for test_script t/10vcp.t
=cut
$VERSION = 1 ;
@ISA = qw( VCP::Filter );
use strict ;
use VCP::Filter;
use Getopt::Long;
#use base qw( VCP::Filter );
sub new {
my $self = shift->SUPER::new;
## Parse the options
my ( $spec, $options ) = @_ ;
{
local *ARGV = $options ;
GetOptions(
"NoOptionsAllowed" => \undef,
)
or $self->usage_and_exit ;
}
return $self ;
}
=head1 AUTHOR
Barrie Slaymaker <barries@slaysys.com>
=head1 COPYRIGHT
Copyright (c) 2000, 2001, 2002 Perforce Software, Inc.
All rights reserved.
See L<VCP::License|VCP::License> (C<vcp help license>) for the terms of use.
=cut
1
|