Added error message to pscp when no noderange given. Also fixed usage statement to be more clear.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1410 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
59ab923725
commit
69cc6cc67b
@ -29,7 +29,8 @@ if ($ENV{XCATHOST}) {
|
||||
|
||||
sub usage
|
||||
{
|
||||
print "Usage: pscp [-i <suffix>] [scp options...] [filename]... <noderange>:<destination>\n";
|
||||
print $_[0];
|
||||
print "Usage: pscp [-i <SUFFIX>] [SCP OPTIONS...] FILE... <NODERANGE>:<DESTINATION>\n";
|
||||
exit 1;
|
||||
}
|
||||
|
||||
@ -46,7 +47,7 @@ while (@ARGV)
|
||||
}
|
||||
my $noderange, $destloc;
|
||||
if ($dest =~ /:/) { ($noderange, $destloc) = split(/:/, $dest); }
|
||||
else { usage(); }
|
||||
else { usage("No node range specified\n\n"); }
|
||||
|
||||
my $client = IO::Socket::SSL->new(
|
||||
PeerAddr=>$xcathost,
|
||||
|
Loading…
Reference in New Issue
Block a user