-
Notifications
You must be signed in to change notification settings - Fork 2.1k
help missing for commands within modules #11609
Copy link
Copy link
Closed
Labels
A:modulesIssues related to functionality of the module system. See also usage:modulesIssues related to functionality of the module system. See also usage:modulesstatus:needs-triageAn issue that hasn't had any proper lookAn issue that hasn't had any proper look
Milestone
Description
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
- in
foo.nu:
export def bar [] {}- in the shell:
use foo.nu
help foo bar
foo bar --helpExpected 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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A:modulesIssues related to functionality of the module system. See also usage:modulesIssues related to functionality of the module system. See also usage:modulesstatus:needs-triageAn issue that hasn't had any proper lookAn issue that hasn't had any proper look