add usage info if no argument specified
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9979 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
f3ec1f9d4c
commit
264ca0d4ec
@ -580,9 +580,10 @@ sub lsvm_parse_args {
|
||||
sub modify {
|
||||
my $request = shift;
|
||||
my $hash = shift;
|
||||
my $usage_string = xCAT::Usage->getUsage($request->{command});
|
||||
return modify_by_prof( $request, $hash) if ( $request->{opt}->{p} || $request->{stdin});
|
||||
return create( $request, $hash) if ( $request->{opt}->{i});
|
||||
return ([["Error", "Miss argument"]]);
|
||||
return ([["Error", "Miss argument\n".$usage_string, 1]]);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user