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;