Skip to content

No custom argument completion for def --wrapped when argument starts with -- #19097

Closed

Description

@weirdan

Bug report form

  • I have done a basic search of the issue tracker to find any existing issues that are similar.
  • I have checked that my version is at least the latest stable release available via my installation method.

Describe the bug

Looks like the argument completion is not called for arguments starting with -- for def --wrapped. def --wrapped is supposed to treat all unknown flags as arguments.

How to reproduce

Run

def "nu-complete what" [] { ["aaa", "--bbb"] }
def --wrapped what [...args:string@"nu-complete what"] {}

then type what -- and press Tab

Expected behavior

I expect nu to complete it to --bbb. It works with what a<Tab> and what <Tab>

Configuration

key value
version 0.116.0
major 0
minor 116
patch 0
branch
commit_hash 2459fdd
build_os linux-x86_64
build_target x86_64-unknown-linux-musl
rust_version rustc 1.96.1 (31fca3adb 2026-06-26)
rust_channel 1.96.1-x86_64-unknown-linux-gnu
cargo_version cargo 1.96.1 (356927216 2026-06-26)
build_time 2026-09-26 18:30:56 +00:00
build_rust_channel release
allocator standard
features dap, default, lsp, mcp, network, plugin, rustls-tls, sqlite, static-link-openssl, trash-support
installed_plugins formats 0.114.1, gstat 0.114.1, inc 0.114.1, plotters 0.1.5+0.103.0, polars 0.114.1, query 0.114.1
experimental_options example=false, dc-glob=false, reorder-cell-paths=true, pipefail=true, enforce-runtime-annotations=true, native-clip=false, cell-path-types=false

Activity

  1. added
    status:needs-triage
    on Sep 27, 2026
  2. fdncred commented on Sep 27, 2026

    @fdncred
    Contributor

    @philocalyst thoughts on this one?

  3. kronberger-droid commented on Oct 1, 2026

    @kronberger-droid
    Contributor

    @weirdan and maybe @woosaaahh if you have time it would be nice if you test #19130 and see if it fixes it.

  4. added this to the 1.0 milestone on Oct 1, 2026
  5. modified the milestones: 1.0, , v0.116.1 on Oct 4, 2026
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

    status:needs-triage

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions