Skip to content

help <module> <def> doesn't display help #10311

Closed

Description

@bobhy

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

Activity

  1. added
    status:needs-triage
    on Sep 11, 2023
  2. added
    category:regression
    A:modules
    on Sep 11, 2023
  3. fdncred commented on Sep 11, 2023

    @fdncred
    Contributor

    interesting. maybe @kubouch has an idea of what's happening.

  4. kubouch commented on Sep 11, 2023

    @kubouch
    Contributor

    Not sure, maybe the help symbol lookup needs to be fixed again. std help seems to work, though.

  5. added
    A:help-system
    on Aug 2, 2024
  6. fdncred commented on Dec 10, 2024

    @fdncred
    Contributor

    closed by #14490

  7. added this to the v0.101.0 milestone on Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A:help-systemA:modulescategory:regressionstatus:needs-triage

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions