2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-29 17:23:08 +00:00

Fix the issue (#5041) when no server name infor with --verbose, but -V does

This commit is contained in:
Bin Xu 2018-04-02 16:04:44 +08:00
parent b8c546051e
commit c99b50d5dc

View File

@ -102,9 +102,9 @@ foreach (keys %ENV) {
}
}
# Allow to print server information when -V
# Allow to print server information when -V/--verbose
foreach (reverse(@ARGV)) {
if ($_ eq '-V') {
if ($_ eq '-V' || $_ eq '--verbose') {
$ENV{'XCATSHOWSVR'} = 1;
last;
}