-
Notifications
You must be signed in to change notification settings - Fork 2.1k
help <module> <def> doesn't display help #10311
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)A:modulesIssues related to functionality of the module system. See also usage:modulesIssues related to functionality of the module system. See also usage:modulescategory:regressionSomething that worked does not work anymore.Something that worked does not work anymore.status:needs-triageAn issue that hasn't had any proper lookAn issue that hasn't had any proper look
Milestone
Description
Describe the bug
Pretty sure this was working a while ago.
How to reproduce
> echo `export def foo [able baker="gronk" --charlie] {echo yes}` | save foo2.nu
> use foo2.nu
> help "foo2 foo"
Error: nu::parser::not_found
× Not found.
╭─[entry #24:1:1]
1 │ help "foo2 foo"
· ─────┬────
· ╰── did not find anything under this name
╰────
### But --help works
> foo2 foo --help
Usage:
> foo {flags} <able> (baker)
Flags:
--charlie -
-h, --help - Display the help message for this command
Parameters:
able <any>:
baker <string>: (optional, default: 'gronk')
Input/output types:
╭───┬───────┬────────╮
│ # │ input │ output │
├───┼───────┼────────┤
│ 0 │ any │ any │
╰───┴───────┴────────╯
Expected behavior
Expected user-defined function to be supported by help command.
Screenshots
No response
Configuration
| key | value |
|---|---|
| version | 0.84.1 |
| branch | main |
| commit_hash | 487f1a9 |
| build_os | linux-x86_64 |
| build_target | x86_64-unknown-linux-gnu |
| rust_version | rustc 1.70.0 (90c541806 2023-05-31) |
| rust_channel | 1.70.0-x86_64-unknown-linux-gnu |
| cargo_version | cargo 1.70.0 (ec8a8a0ca 2023-04-25) |
| build_time | 2023-08-27 10:06:43 -07:00 |
| build_rust_channel | release |
| allocator | standard |
| features | default, sqlite, trash, which, zip |
| installed_plugins |
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)A:modulesIssues related to functionality of the module system. See also usage:modulesIssues related to functionality of the module system. See also usage:modulescategory:regressionSomething that worked does not work anymore.Something that worked does not work anymore.status:needs-triageAn issue that hasn't had any proper lookAn issue that hasn't had any proper look