No custom argument completion for `def --wrapped` when argument starts with `--`
Author: weirdanCreated Sep 27, 2026Updated Sep 27, 2026
Labelsstatus:needs-triage
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 | 2459fdd134ea4fdbae42efd6924e2b41201cf363 |
| 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 |
Source: nushell/nushell