From 264ca0d4ecd7ebe5b3af26409475e07f73ee4bb3 Mon Sep 17 00:00:00 2001 From: zhaoertao Date: Wed, 29 Jun 2011 09:01:14 +0000 Subject: [PATCH] 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 --- perl-xCAT/xCAT/FSPvm.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/perl-xCAT/xCAT/FSPvm.pm b/perl-xCAT/xCAT/FSPvm.pm index 0f6b5d792..2d9f93303 100644 --- a/perl-xCAT/xCAT/FSPvm.pm +++ b/perl-xCAT/xCAT/FSPvm.pm @@ -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]]); }