From f1e93612b3c289cde1b6cb317e1829b50050a18a Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Fri, 8 Feb 2008 22:07:09 +0000 Subject: [PATCH] Fix wcons to require noderange git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@431 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-client-2.0/bin/wcons | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xCAT-client-2.0/bin/wcons b/xCAT-client-2.0/bin/wcons index ea261affe..88d711f63 100755 --- a/xCAT-client-2.0/bin/wcons +++ b/xCAT-client-2.0/bin/wcons @@ -17,6 +17,10 @@ GetOptions( 'tile|t:i' => \$tilefact, #'font|f=s' => \$font ); +unless ($ARGV[$#ARGV]) { + print "Usage: wcons \n"; + exit 1; +} my $nodes=`nodels $ARGV[$#ARGV]`; my $conservers=`nodels $ARGV[$#ARGV] nodehm.conserver`; pop @ARGV;