From 61f1fd37f97192b80a6e648b7c4ebdc209403822 Mon Sep 17 00:00:00 2001 From: XuWei Date: Thu, 13 Apr 2017 01:36:43 -0400 Subject: [PATCH] fix issue 2710, print usage when run renergy node without option --- xCAT-server/lib/xcat/plugins/energy.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/energy.pm b/xCAT-server/lib/xcat/plugins/energy.pm index 916cf0263..e889d33ea 100644 --- a/xCAT-server/lib/xcat/plugins/energy.pm +++ b/xCAT-server/lib/xcat/plugins/energy.pm @@ -151,6 +151,8 @@ sub parse_args { if ($::VERBOSE) { $opt->{verbose} = 1; } + } else { + return (1, &usage()); } # if the request has node range