[nushell] Generates invalid completions when variadic arg is used with last=true arg #5771
Open
2 tasks done
Labels
A-completion
Area: completion generator
C-bug
Category: Updating dependencies
E-medium
Call for participation: Experience needed to fix: Medium / intermediate
Please complete the following tasks
Rust Version
rustc 1.81.0 (eeb90cda1 2024-09-04)
Clap Version
4.5.19
Minimal reproducible code
Steps to reproduce the bug with the above code
cargo run -- example
Actual Behaviour
It generates a completion that uses
...<arg>: string
syntax for both the variadic arg, and thelast
arg. This results in Nu erroring with "Multiple rest params".Example: https://cdn.discordapp.com/attachments/974160221452763149/1289506849053343845/image.png?ex=6706ea16&is=67059896&hm=6df6cb538be11ccf5a531f46c2dab73013e965749fe809a95287666b16188803&
Expected Behaviour
This generates a valid completion. We probably want to omit
last
args entirely.Additional Context
No response
Debug Output
No response
The text was updated successfully, but these errors were encountered: