From 69cc6cc67b81392aab2c9240ccfcde7312f728f9 Mon Sep 17 00:00:00 2001 From: memotype Date: Thu, 15 May 2008 16:22:47 +0000 Subject: [PATCH] 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 --- xCAT-client-2.0/bin/pscp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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,