forked from extern/nushell
Reorder help <keyword>
priority (#7929)
# Description `help <keyword>` will now search for `<keyword>` in aliases first, then commands. This matches the way the parser resolves aliases before commands. # User-Facing Changes Not significant
This commit is contained in:
@ -86,15 +86,15 @@ You can also learn more at https://www.nushell.sh/book/"#;
|
||||
} else if find.is_some() {
|
||||
help_commands(engine_state, stack, call)
|
||||
} else {
|
||||
let result = help_commands(engine_state, stack, call);
|
||||
let result = help_aliases(engine_state, stack, call);
|
||||
|
||||
let result = if let Err(ShellError::CommandNotFound(_)) = result {
|
||||
help_aliases(engine_state, stack, call)
|
||||
let result = if let Err(ShellError::AliasNotFound(_)) = result {
|
||||
help_commands(engine_state, stack, call)
|
||||
} else {
|
||||
result
|
||||
};
|
||||
|
||||
let result = if let Err(ShellError::AliasNotFound(_)) = result {
|
||||
let result = if let Err(ShellError::CommandNotFound(_)) = result {
|
||||
help_modules(engine_state, stack, call)
|
||||
} else {
|
||||
result
|
||||
|
Reference in New Issue
Block a user