VCS::LibCVS::Client::Request::Argument.3pm

Langue: en

Autres versions - même langue

Version: 2005-10-10 (fedora - 01/12/10)

Section: 3 (Bibliothèques de fonctions)

NAME

VCS::LibCVS::Client::Request::Argument - an Argument request

SYNOPSIS

   $switch = VCS::LibCVS::Client::Request::Argument->new("-m");
   $msg = VCS::LibCVS::Client::Request::Argument->new("2 line\nmessage");
   $msg = VCS::LibCVS::Client::Request::Argument->new( ["2 line","msg"] );
   $client->submit_request($switch);
   $client->submit_request($msg);
 
 

DESCRIPTION

Used for sending arguments to the server. These are similar to the cvs command-line switches.

The only difference from a regular request is the constructor.

An Argument can contain arbitrary characters, including newlines. In order to support this the CVS client protocol has a request called Argumentx that appends a line to a previous Argument request. This library rolls these two requests into one object which can handle arguments with multiple lines.

SUPERCLASS

   VCS::LibCVS::Client::Request
 
 

CLASS ROUTINES

new()

$request = Client::Request::Argument->new($args_data)
return type: Client::Request::Argument
argument 1 type: . . .
option 1: scalar
All of the argument data, across any number of lines.
option 2: array ref
The elements of the array are joined with newlines between them to form a scalar which is used as the data.

Constructs and returns a new Argument Request.

SEE ALSO

   VCS::LibCVS::Client::Request