-
Notifications
You must be signed in to change notification settings - Fork 2.1k
some_module some_submodule start --help will show help for built-in start #13470
Copy link
Copy link
Closed
Labels
A:help-systemRelated to help commands and our documentation system (not docs itself)Related to help commands and our documentation system (not docs itself)status:needs-triageAn issue that hasn't had any proper lookAn issue that hasn't had any proper look
Milestone
Description
Describe the bug
It seems like a bug to me. It appeared in version 0.96.0 and did not exist in version 0.95. If a module contains a command with the same name as another command, calling this command using some_mod capture start --help will also return help for the built-in start command.
How to reproduce
# recreate some_mod
mkdir 'some_mod';
r########'# start capturing commands and their outputs into a file
export def --env start [
file: path = 'numd_capture.md'
--separate # don't use `>` notation, create separate blocks for each pipeline
]: nothing -> nothing { }'######## | save some_mod/capture.nu;
r########'export module "capture.nu"'######## | save some_mod/mod.nu;
> use some_mod;
> some_mod capture start --help
Expected behavior
I expect nushell to output only help for specified module
Screenshots
No response
Configuration
| key | value |
|---|---|
| version | 0.96.1 |
| major | 0 |
| minor | 96 |
| patch | 1 |
| branch | stor-no-ansi-reset |
| commit_hash | 6a83a05 |
| build_os | macos-aarch64 |
| build_target | aarch64-apple-darwin |
| rust_version | rustc 1.77.2 (25ef9e3d8 2024-04-09) |
| rust_channel | 1.77.2-aarch64-apple-darwin |
| cargo_version | cargo 1.77.2 (e52e36006 2024-03-26) |
| build_time | 2024-07-26 14:40:04 +00:00 |
| build_rust_channel | release |
| allocator | mimalloc |
| features | default, sqlite, system-clipboard, trash |
| installed_plugins | polars 0.96.0, regex |
Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A:help-systemRelated to help commands and our documentation system (not docs itself)Related to help commands and our documentation system (not docs itself)status:needs-triageAn issue that hasn't had any proper lookAn issue that hasn't had any proper look