mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-29 16:44:10 +02:00
MdeModulePkg CapsuleApp: Show clear message when option is unrecognized
Cc: Michael D Kinney <michael.d.kinney@intel.com> Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: Yonghong Zhu <yonghong.zhu@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
This commit is contained in:
parent
81e1276adf
commit
95dd7a6ecd
@ -850,10 +850,17 @@ UefiMain (
|
|||||||
}
|
}
|
||||||
return EFI_SUCCESS;
|
return EFI_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (StrCmp(Argv[1], L"-E") == 0) {
|
if (StrCmp(Argv[1], L"-E") == 0) {
|
||||||
DumpEsrtData();
|
DumpEsrtData();
|
||||||
return EFI_SUCCESS;
|
return EFI_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (Argv[1][0] == L'-') {
|
||||||
|
Print(L"CapsuleApp: Unrecognized option(%s).\n", Argv[1]);
|
||||||
|
return EFI_UNSUPPORTED;
|
||||||
|
}
|
||||||
|
|
||||||
CapsuleFirstIndex = 1;
|
CapsuleFirstIndex = 1;
|
||||||
NoReset = FALSE;
|
NoReset = FALSE;
|
||||||
if ((Argc > 1) && (StrCmp(Argv[Argc - 1], L"-NR") == 0)) {
|
if ((Argc > 1) && (StrCmp(Argv[Argc - 1], L"-NR") == 0)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user