mirror of
https://github.com/duncs/clusterssh.git
synced 2025-07-03 18:03:23 +00:00
Add in another option for testing
This commit is contained in:
parent
305a6f3535
commit
da8dc00d47
1 changed files with 7 additions and 5 deletions
12
bin/cssh
12
bin/cssh
|
@ -11,14 +11,16 @@ my $app = App::ClusterSSH->new();
|
||||||
|
|
||||||
$app->options->add_common_ssh_options;
|
$app->options->add_common_ssh_options;
|
||||||
|
|
||||||
|
# only works in ssh and rsh, not telnet or console
|
||||||
$app->add_option(
|
$app->add_option(
|
||||||
spec => 'freddo|z',
|
spec => 'action|a=s',
|
||||||
help => "--freddo\n\tSome help output",
|
help => $app->loc("Run the command in each session, e.g. C<-a 'vi /etc/hosts'> to drop straight into a vi session."),
|
||||||
);
|
);
|
||||||
|
|
||||||
use Data::Dump qw(dump);
|
$app->add_option(
|
||||||
warn dump $app;
|
spec => 'freddo|z',
|
||||||
die;
|
help => $app->loc("Some help output"),
|
||||||
|
);
|
||||||
|
|
||||||
$app->run();
|
$app->run();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue