Skip to content

help missing for commands within modules #11609

@Zoybean

Description

@Zoybean

Describe the bug

When defining a command within a module, then using that module, help for that command does not find the command

How to reproduce

  1. in foo.nu:
export def bar [] {}
  1. in the shell:
use foo.nu
help foo bar
foo bar --help

Expected behavior

I expect both help foo bar and foo bar --help to print the help for the bar command defined within the foo module. However, only the latter form works, with the former returning an error, did not find anything under this name

Screenshots

No response

Configuration

key value
version 0.89.1
branch main
commit_hash 90d65bb
build_os windows-x86
build_target i686-pc-windows-msvc
rust_version rustc 1.73.0 (cc66ad468 2023-10-03)
rust_channel 1.73.0-i686-pc-windows-msvc
cargo_version cargo 1.73.0 (9c4383fb5 2023-08-26)
build_time 2024-01-22 16:15:48 +08:00
build_rust_channel release
allocator mimalloc
features default, extra, sqlite, trash, which, zip
installed_plugins

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    A:modulesIssues related to functionality of the module system. See also usage:modulesstatus:needs-triageAn issue that hasn't had any proper look

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions