mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-13 01:40:26 +00:00
Merge pull request #4540 from whowutwut/help_with_rflash_delete
[OpenBMC] Help the user figure out the problem when using -d to delete FW
This commit is contained in:
@ -1199,7 +1199,12 @@ sub parse_args {
|
||||
if ($updateid_passed) {
|
||||
# Updateid was passed, check flags allowed with update id
|
||||
if ($option_flag !~ /^--delete$|^-a$|^--activate$/) {
|
||||
return ([ 1, "Invalid option specified when an update id is provided: $option_flag" ]);
|
||||
my $optional_help_msg = "";
|
||||
if ($option_flag == "-d") {
|
||||
# For this special case, -d was changed to pass in a directory.
|
||||
$optional_help_msg = "Did you mean --delete?"
|
||||
}
|
||||
return ([ 1, "Invalid option specified when an update id is provided: $option_flag. $optional_help_msg" ]);
|
||||
}
|
||||
my $action = "activate";
|
||||
if ($option_flag =~ /^--delete$/) {
|
||||
|
Reference in New Issue
Block a user