diff --git a/xCAT-client-2.0/bin/pscp b/xCAT-client-2.0/bin/pscp index 943542e0f..8854e17b5 100755 --- a/xCAT-client-2.0/bin/pscp +++ b/xCAT-client-2.0/bin/pscp @@ -29,7 +29,8 @@ if ($ENV{XCATHOST}) { sub usage { - print "Usage: pscp [-i ] [scp options...] [filename]... :\n"; + print $_[0]; + print "Usage: pscp [-i ] [SCP OPTIONS...] FILE... :\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,