diff options
| author | Pierre Gondois <pierre.gondois@arm.com> | 2026-08-11 17:35:56 +0300 |
|---|---|---|
| committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2026-09-16 17:27:54 +0300 |
| commit | 29a6f5dd06cb714a76f2385d4c50fde0d2d7d8bf (patch) | |
| tree | 01331f481030205e6d778604bc97f0907d8d2638 /BaseTools/Source/Python | |
| parent | 6ac4aa8c1004bbba0d4bb0d80f9ef945b4df0de2 (diff) | |
| download | edk2-29a6f5dd06cb714a76f2385d4c50fde0d2d7d8bf.tar.xz | |
ShellPkg: Trim cmd parameters if -? is present
The presence of "-?" in a command line is equivalent to issuing
"help <cmd>" and displays the manual page of the command.
However the additional command specific parameters/flags
are also passed to the help command and are mis-interpreted
by the help command.
E.g. "ls -r -?" translates to "help ls -r"
"""
Shell> ls -r -?
help: Unknown flag - '-r'
"""
Update DoHelpUpdate() to only keep the command name and trim
additional command specific parameters. To pass "help" specific
flags while getting the manual page for a command, the usage
of the "help" command should be preferred over adding "-?".
Note:
As a side effect, issuing:
"""
Shell> -?
"""
- used to be translated to "help -?", i.e. request
the manual for the help command
- is now translated to "help", i.e. request all the shell
command available
Signed-off-by: Pierre Gondois <pierre.gondois@arm.com>
Diffstat (limited to 'BaseTools/Source/Python')
0 files changed, 0 insertions, 0 deletions
