mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-21 05:25:32 +00:00
Merge pull request #4767 from xuweibj/I4764
modify error msg for rflash unsupported option
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user