diff --git a/perl-xCAT/xCAT/PPCrflash.pm b/perl-xCAT/xCAT/PPCrflash.pm index c1b63e6db..232e5821d 100644 --- a/perl-xCAT/xCAT/PPCrflash.pm +++ b/perl-xCAT/xCAT/PPCrflash.pm @@ -102,7 +102,10 @@ sub parse_args { # Option -v for version #################################### if ( exists( $opt{v} )) { - return( \$::VERSION ); + if (!defined($::VERSION)) { + return ([xCAT::Usage->getVersion($cmd)]); + } + return( [$::VERSION] ); } if ( exists( $opt{h}) || $opt{help}) {