Skip to content

Commit 8d4f6a7

Browse files
committed
Generate short flag custom completions
1 parent 193574d commit 8d4f6a7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

needs-update/custom-completions/auto-generate/parse-fish.nu

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,11 @@ def build-flags [] {
173173
] | str join
174174
)
175175
] | str join
176+
} else if ('short-option' in ($subargs | columns)) and ($subargs.short-option != "") {
177+
[
178+
"\t-" $subargs.short-option
179+
(if ('description' in ($subargs | columns)) and ($subargs.description != "") { [ "\t\t\t\t\t# " $subargs.description ] | str join })
180+
] | str join
176181
}
177182
}
178183
}

0 commit comments

Comments
 (0)