2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-24 15:05:36 +00:00

remove install/netboot/statelite related flags from rmimage, liteimg and rinstall

This commit is contained in:
ligc
2015-05-14 04:57:44 -04:00
parent 74cb3470eb
commit c0f65b7ae7
2 changed files with 5 additions and 10 deletions

View File

@ -412,18 +412,13 @@ sub usage
my $rsp = {};
$rsp->{data}->[0] = "$command usage:";
if ($command =~ /rinstall/) {
$rsp->{data}->[1] = " [-o|--osver] [-p|--profile] [-a|--arch] [-c|--console] <noderange>";
} else { # winstall
$rsp->{data}->[1] = " [-o|--osver] [-p|--profile] [-a|--arch] <noderange>";
}
if ($command =~ /rinstall/) {
$rsp->{data}->[2] = " [-O|--osimage] [-c|--console] <noderange>";
$rsp->{data}->[1] = " [-O|--osimage] [-c|--console] <noderange>";
} else { # wininstall
$rsp->{data}->[2] = " [-O|--osimage] <noderange>";
$rsp->{data}->[1] = " [-O|--osimage] <noderange>";
}
$rsp->{data}->[3] = " [-h|--help]";
$rsp->{data}->[4] = " [-v|--version]";
$rsp->{data}->[2] = " [-h|--help]";
$rsp->{data}->[3] = " [-v|--version]";
xCAT::MsgUtils->message("I", $rsp, $callback);
}

View File

@ -30,7 +30,7 @@ sub process_request {
my $installroot = xCAT::TableUtils->getInstallDir();
my $tftproot = xCAT::TableUtils->getTftpDir();
my $usage = "\nUsage:\n rmimage [-h | --help]\n rmimage [-V | --verbose] -o <OS> -a <architecture> -p <profile>\n rmimage [-V | --verbose] imagename [--xcatde]";
my $usage = "\nUsage:\n rmimage [-h | --help]\n rmimage [-V | --verbose] imagename [--xcatde]";
@ARGV = @{$request->{arg}};