From 9c5be2a2d8241fcdfefa2935d5e3f811a11443f3 Mon Sep 17 00:00:00 2001 From: Fabian Boehm Date: Wed, 2 Apr 2025 16:58:47 +0200 Subject: [PATCH] completions/cargo: Complete `-Z` options --- share/completions/cargo.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/completions/cargo.fish b/share/completions/cargo.fish index ee25bc0fd..286474bf6 100644 --- a/share/completions/cargo.fish +++ b/share/completions/cargo.fish @@ -55,7 +55,7 @@ complete -c cargo -n '__fish_seen_subcommand_from run test build debug check' -l complete -c cargo -n __fish_use_subcommand -l explain -d 'Run `rustc --explain CODE`' complete -c cargo -n __fish_use_subcommand -l color -d 'Coloring: auto, always, never' complete -c cargo -n __fish_use_subcommand -l config -d 'Override a configuration value (unstable)' -complete -c cargo -n __fish_use_subcommand -s Z -d 'Unstable (nightly-only) flags to Cargo, see \'cargo -Z help\' for details' +complete -c cargo -n __fish_use_subcommand -s Z -d 'Unstable (nightly-only) flags to Cargo, see \'cargo -Z help\' for details' -xa '(cargo -Z help | string replace -rf \'^\s*-Z (\S+)\s+(.*)\' \'$1\t$2\')' complete -c cargo -n __fish_use_subcommand -s V -l version -d 'Print version info and exit' complete -c cargo -n __fish_use_subcommand -l list -d 'List installed commands' complete -c cargo -n __fish_use_subcommand -s v -l verbose -d 'Use verbose output (-vv very verbose/build.rs output)'