diff --git a/ctl/src/main.rs b/ctl/src/main.rs index 0615dcd..50d1589 100644 --- a/ctl/src/main.rs +++ b/ctl/src/main.rs @@ -96,7 +96,7 @@ async fn main() { .value_hint(ValueHint::Other), ); - #[cfg(feature = "complete")] + #[cfg(feature = "completion")] { command = clap_autocomplete::add_subcommand(command); } @@ -106,9 +106,9 @@ async fn main() { "COMMAND is required unless --wait or complete is used", ); - #[cfg(feature = "complete")] + #[cfg(feature = "completion")] let mut shell_completion_command = command.clone(); - #[cfg(feature = "complete")] + #[cfg(feature = "completion")] { shell_completion_command = shell_completion_command .subcommand( @@ -216,7 +216,7 @@ async fn main() { } let matches = command.get_matches(); - #[cfg(feature = "complete")] + #[cfg(feature = "completion")] if let Some(result) = clap_autocomplete::test_subcommand(&matches, shell_completion_command) { if let Err(err) = result { eprintln!("Insufficient permissions: {err}");