]> git.proxmox.com Git - mirror_edk2.git/commit - ShellPkg/Application/Shell/ShellManParser.c
ShellPkg: Ease the shell's MAN file Title Header syntax requirements.
authorJim Dailey <jim_dailey@dell.com>
Wed, 16 Dec 2015 02:01:07 +0000 (02:01 +0000)
committershenshushi <shenshushi@Edk2>
Wed, 16 Dec 2015 02:01:07 +0000 (02:01 +0000)
commit52d1f930904baa21355afa6efaf0e8d1e75af485
tree54bf268093b7797dd277897cf31834365f9ce005
parent23df19a7781885d9220144f2e2678550ea013c66
ShellPkg: Ease the shell's MAN file Title Header syntax requirements.

Prior to this change, the shell would not use a MAN file if the Title Header line was not strictly formatted.
For example, if the case of the command name in the file was not exactly the same as the case of the command name as typed by the user,
the MAN file would not be used.  Also, extra whitespace on the line would also cause the shell to ignore the MAN file.
This change allows "extra" white space and ignores case when looking for the command name.
It also ignores any path information for cases where the user enters a relative or absolute path to the EFI file.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jim Dailey <jim_dailey@dell.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19290 6f19259b-4bc3-4df7-8a09-765794883524
ShellPkg/Application/Shell/ShellManParser.c