> On Sep 14, 2015, at 7:53 PM, Ni, Ruiyu <ruiyu...@intel.com> wrote: > > All, > UEFI Shell scandalizes the help message in spec level so that a standalone > UEFI shell application can never get "-?" switch, instead the Shell core > (interpreter) detects the "-?" and finds .MAN file for that shell application > in certain spec defined paths, then show the help extracted from that .MAN > file. > > But it means distributing a UEFI shell application not only means > distributing a .EFI file but also distributing a .MAN file. If the text > formatted .MAN file is corrupted (edited by user by mistake), or is missing > (deleted by user by mistake), no help will be shown to user. > > So I propose to embedded the help message inside the .EFI file in a PE > resource section and the algorithm to find help for a standalone application > is as following. > > Search command.man file for valid help content > If command.man exists and help content is valid: > Display the help > Else: > Load the command.efi (do not start it) > Check whether the ImageHandle has EFI_HII_PACKAGE_LIST_PROTOCOL_GUID installed > Check all strings in the HII packages to find a string which follows spec > defined help format > If the string exists: > Display the help > Else: > Show "no Help" > > Any comments, concerns? >
Would this feature require updating the UEFI Shell Specification? Thanks, Andrew Fish > > Regards, > Ray > > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.01.org_mailman_listinfo_edk2-2Ddevel&d=BQICAg&c=eEvniauFctOgLOKGJOplqw&r=1HnUuXD1wDvw67rut5_idw&m=_cmkx_yAWDyToHJ6XXUyK8qnygDbR8JybrAy3GW0bxI&s=DtxkQsbqL8vqjctJhVdpTYa0msKsQtXDicdjNfXatNk&e= > _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel