2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-18 20:30:56 +00:00

give warnings and return when use -o -p -a for packimage (#1757)

This commit is contained in:
penguhyang
2016-08-25 11:10:27 +08:00
committed by yangsong
parent ed5246492a
commit fd747d5fc6

View File

@ -108,6 +108,10 @@ sub process_request {
"help|h" => \$help,
"version|v" => \$version
);
if ($arch or $osver or $profile) {
$callback->({ error => ["-o, -p and -a options are obsoleted, please use 'packimage <osimage name>' instead."], errorcode => [1] });
return 1;
}
if ($version) {
my $version = xCAT::Utils->Version();
$callback->({ info => [$version] });