2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-17 16:50:22 +00:00

modify error msg for rflash unsupported option

This commit is contained in:
XuWei
2018-01-31 00:42:56 -05:00
parent 4e52afbaa1
commit 601df79729

View File

@@ -163,6 +163,11 @@ sub parse_args {
if ($option_num >= 2) {
return ([ 1, "Multiple options are not supported."]);
} elsif ($option_num == 0) {
for my $arg (@ARGV) {
if ($arg =~ /^-/) {
return ([ 1, "Unsupported command: $command $arg" ]);
}
}
return ([ 1, "No options specified."]);
}
if ($activate or $check or $delete or $upload) {