mirror of
https://github.com/duncs/clusterssh.git
synced 2025-04-21 09:09:06 +00:00
Convert and localise more options
This commit is contained in:
parent
b2156d8170
commit
be4093f728
1 changed files with 12 additions and 9 deletions
|
@ -120,19 +120,22 @@ sub add_option {
|
|||
return $self;
|
||||
}
|
||||
|
||||
# For options common to everything
|
||||
sub add_common_options {
|
||||
my ( $self ) = @_;
|
||||
|
||||
return $self;
|
||||
}
|
||||
|
||||
# For options common to ssh sessions
|
||||
sub add_common_ssh_options {
|
||||
my ( $self ) = @_;
|
||||
|
||||
# $self->add_option(
|
||||
# spec => 'ssh_cmd1|X=s',
|
||||
# help => $self->loc("Common ssh option 1"),
|
||||
# );
|
||||
#
|
||||
# $self->add_option(
|
||||
# spec => 'ssh_cmd2|Y=i',
|
||||
# help => $self->loc("Common ssh option 2"),
|
||||
# );
|
||||
$self->add_option(
|
||||
spec => 'options|o=s',
|
||||
help => $self->loc('Specify arguments to be passed to ssh when making the connection. B<NOTE:> options for ssh should normally be put into the ssh configuration file; see C<ssh_config> and F<$HOME/.ssh/config> for more details.'),
|
||||
default => '-x -o ConnectTimeout=10',
|
||||
);
|
||||
|
||||
return $self;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue