1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-07-29 21:27:47 +00:00

fishgen: Fix flags crossing subcommands (#1122)

This commit is contained in:
Jan Klass 2025-05-11 23:33:28 +02:00 committed by GitHub
parent f371420c5b
commit 189c3d646e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -103,7 +103,7 @@ def make-subcommands-completion [parents: list<string>] {
" [\n"
(
$fishes
| if ('n' in ($subcommand | columns)) {
| if ('n' in ($subcommand.args | columns)) {
if ($subcommand.name != "") {
where ($it.n | str contains $subcommand.name) # for subcommand -> any where n matches `__fish_seen_subcommand_from arg` for the subcommand name
} else {