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:
@ -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] });
|
||||
|
Reference in New Issue
Block a user