diff --git a/clap_complete/src/dynamic/shells/mod.rs b/clap_complete/src/dynamic/shells/mod.rs index c8e96ec2b10..6cfed97ed5e 100644 --- a/clap_complete/src/dynamic/shells/mod.rs +++ b/clap_complete/src/dynamic/shells/mod.rs @@ -19,6 +19,7 @@ use crate::dynamic::Completer as _; #[derive(clap::Subcommand)] #[allow(missing_docs)] #[derive(Clone, Debug)] +#[command(about = None, long_about = None)] pub enum CompleteCommand { /// Register shell completions for this program #[command(hide = true)] @@ -31,6 +32,7 @@ pub enum CompleteCommand { #[command(group = clap::ArgGroup::new("complete").multiple(true).conflicts_with("register"))] #[allow(missing_docs)] #[derive(Clone, Debug)] +#[command(about = None, long_about = None)] pub struct CompleteArgs { /// Specify shell to complete for #[arg(long)] diff --git a/clap_complete/tests/snapshots/home/static/exhaustive/elvish/elvish/rc.elv b/clap_complete/tests/snapshots/home/static/exhaustive/elvish/elvish/rc.elv index 5fc437e571b..e403bd8310f 100644 --- a/clap_complete/tests/snapshots/home/static/exhaustive/elvish/elvish/rc.elv +++ b/clap_complete/tests/snapshots/home/static/exhaustive/elvish/elvish/rc.elv @@ -22,8 +22,8 @@ set edit:completion:arg-completer[exhaustive] = {|@words| &'exhaustive'= { cand --generate 'generate' cand --global 'everywhere' - cand -h 'Print help (see more with ''--help'')' - cand --help 'Print help (see more with ''--help'')' + cand -h 'Print help' + cand --help 'Print help' cand -V 'Print version' cand --version 'Print version' cand action 'action' diff --git a/clap_complete/tests/snapshots/home/static/exhaustive/fish/fish/completions/exhaustive.fish b/clap_complete/tests/snapshots/home/static/exhaustive/fish/fish/completions/exhaustive.fish index 95e67327e4e..e9558b91118 100644 --- a/clap_complete/tests/snapshots/home/static/exhaustive/fish/fish/completions/exhaustive.fish +++ b/clap_complete/tests/snapshots/home/static/exhaustive/fish/fish/completions/exhaustive.fish @@ -1,6 +1,6 @@ complete -c exhaustive -n "__fish_use_subcommand" -l generate -d 'generate' -r -f -a "{bash '',elvish '',fish '',powershell '',zsh ''}" complete -c exhaustive -n "__fish_use_subcommand" -l global -d 'everywhere' -complete -c exhaustive -n "__fish_use_subcommand" -s h -l help -d 'Print help (see more with \'--help\')' +complete -c exhaustive -n "__fish_use_subcommand" -s h -l help -d 'Print help' complete -c exhaustive -n "__fish_use_subcommand" -s V -l version -d 'Print version' complete -c exhaustive -n "__fish_use_subcommand" -f -a "action" complete -c exhaustive -n "__fish_use_subcommand" -f -a "quote" diff --git a/clap_complete/tests/snapshots/home/static/exhaustive/zsh/zsh/_exhaustive b/clap_complete/tests/snapshots/home/static/exhaustive/zsh/zsh/_exhaustive index 643a158a834..82e68ced2e9 100644 --- a/clap_complete/tests/snapshots/home/static/exhaustive/zsh/zsh/_exhaustive +++ b/clap_complete/tests/snapshots/home/static/exhaustive/zsh/zsh/_exhaustive @@ -17,8 +17,8 @@ _exhaustive() { _arguments "${_arguments_options[@]}" \ '--generate=[generate]:SHELL:(bash elvish fish powershell zsh)' \ '--global[everywhere]' \ -'-h[Print help (see more with '\''--help'\'')]' \ -'--help[Print help (see more with '\''--help'\'')]' \ +'-h[Print help]' \ +'--help[Print help]' \ '-V[Print version]' \ '--version[Print version]' \ ":: :_exhaustive_commands" \