The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

SVN::S4::Getopt - Get Subversion command line options

SYNOPSIS

  use SVN::S4::Getopt;
  my $opt = new SVN::S4::Getopt;
  ...
=head1 DESCRIPTION

The SVN::S4::Getopt package provides standardized handling of global options for the front of svn commands.

$opt = SVN::S4::Getopt->new ( opts )

Create a new Getopt.

ACCESSORS

There is a accessor for each parameter listed above. In addition:

$self->commands_sorted()

Return sorted list of all commands.

$self->command_arg_text(<cmd>)

Return textual description of the specified command.

$self->command_s4_addition(<cmd>)

Return true if the command is only in s4.

$self->command_s4_changed(<cmd>)

Return true if the command is modified from normal SVN operation by s4.

$self->fileline()

The filename and line number last parsed.

$self->hashCmd(<cmd>, <opts>)

Return a hash with one key for each option. The value of the key is 1 if a no-argument option was set, else it is an array with each value the option was set to.

$self->parseCmd(<cmd>, <opts>)

Return a array with one element for each option. The element is either 'switch', the name of the switch the option is specifying, or the name of the parameter.

$self->stripOneArg(-<arg>, <opts>...)

Return the option list, with the specified matching argument removed.

DISTRIBUTION

The latest version is available from CPAN and from http://www.veripool.org/.

Copyright 2002-2010 by Wilson Snyder. This package is free software; you can redistribute it and/or modify it under the terms of either the GNU Lesser General Public License Version 3 or the Perl Artistic License Version 2.0.

AUTHORS

Wilson Snyder <wsnyder@wsnyder.org>

SEE ALSO

SVN::S4