]> git.proxmox.com Git - mirror_edk2.git/commit - ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiView.c
ShellPkg: acpiview: Make '-h' option not require a parameter
authorKrzysztof Koch <krzysztof.koch@arm.com>
Fri, 28 Jun 2019 08:57:00 +0000 (16:57 +0800)
committerRay Ni <ray.ni@intel.com>
Tue, 2 Jul 2019 09:22:46 +0000 (17:22 +0800)
commit4286eb22f4aec33b90574b998a31f8bd34dd4f47
tree61aa895cb7335052ecee3a0c178f105508917489
parent5ed3b5624f91b2738a90598ea8a9c085cfab851e
ShellPkg: acpiview: Make '-h' option not require a parameter

Make the -h command line option a binary flag. Now, colour
highlighting is enabled whenever this flag is set (stateless),
instead of being dependent on previous acpiview command
invocations.

By removing the parameter required with the -h flag the command
line parsing logic becomes simpler.

Signed-off-by: Krzysztof Koch <krzysztof.koch@arm.com>
Reviewed-by: Alexei Fedorov <Alexei.Fedorov@arm.com>
Reviewed-by: Zhichao Gao <zhichao.gao@intel.com>
Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiView.c
ShellPkg/Library/UefiShellAcpiViewCommandLib/UefiShellAcpiViewCommandLib.uni