-Bug# 2636011 is fixed; one check point is added; to handle the condition where there's no arg passed to packimage

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3184 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
mxi1 2009-04-14 02:54:48 +00:00
parent 7a347af3b9
commit 6f0bb2840b

View File

@ -44,7 +44,7 @@ sub process_request {
$callback->({info=>[$version]});
return;
}
if ($help) {
if ($help || scalar @ARGV == 0) {
$callback->({info=>["packimage -h \npackimage -v \npackimage [-p profile] [-a architecture] [-o OS] [-m method]\n"]});
return;
}