mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-11 07:40:11 +00:00
Output usage if no noderange specified. Fixing bug: 3006815
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7844 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
@ -56,7 +56,7 @@ sub preprocess_request {
|
||||
if (ref($extrargs)) {
|
||||
@exargs=@$extrargs;
|
||||
}
|
||||
if (($#exargs==-1) or (($#exargs==0) and ($exargs[0] =~ /^\s*$/)) ) {
|
||||
if (($#exargs==-1) or (($#exargs==0) and ($exargs[0] =~ /^\s*$/)) or (!$noderange)) {
|
||||
$exargs[0] = "--help"; # force help if no args
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user