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

Merge pull request #4767 from xuweibj/I4764

modify error msg for rflash unsupported option
This commit is contained in:
zet809
2018-01-31 14:20:43 +08:00
committed by GitHub

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) {