completions/cargo: remove redundant arguments

This commit is contained in:
Johannes Altmanninger
2026-05-18 15:33:42 +08:00
parent 5d317be52c
commit f598a7b444

View File

@@ -9,8 +9,8 @@ end
set -l __fish_cargo_subcommands (__fish_cargo --list 2>&1 | string replace -rf '^\s+([^\s]+)\s*(.*)' '$1\t$2' | string escape)
complete -c cargo -f -c cargo -n __fish_use_subcommand -a "$__fish_cargo_subcommands"
complete -c cargo -x -c cargo -n '__fish_seen_subcommand_from help' -a "$__fish_cargo_subcommands"
complete -c cargo -f -n __fish_use_subcommand -a "$__fish_cargo_subcommands"
complete -c cargo -x -n '__fish_seen_subcommand_from help' -a "$__fish_cargo_subcommands"
for x in bench b build c check rustc t test
complete -c cargo -x -n "__fish_seen_subcommand_from $x" -l bench -a "(__fish_cargo bench --bench 2>&1 | string replace -rf '^\s+' '')"