From 79703838ffaa7e4db11180b0e17da35906ff0289 Mon Sep 17 00:00:00 2001 From: Jose Quintana Date: Mon, 5 Jun 2023 01:57:50 +0200 Subject: [PATCH] fix: windows install/uninstall subcommand --- src/settings/cli.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/settings/cli.rs b/src/settings/cli.rs index 79377e77..d6e34fc8 100644 --- a/src/settings/cli.rs +++ b/src/settings/cli.rs @@ -375,20 +375,20 @@ pub struct General { // Windows commands #[cfg(windows)] - #[arg(subcommand)] + #[command(subcommand)] /// Subcommands to install or uninstall the SWS Windows Service. pub commands: Option, } #[cfg(windows)] -#[derive(Debug, arg)] +#[derive(Debug, clap::Subcommand)] /// Subcommands to install or uninstall the SWS Windows Service. pub enum Commands { /// Install a Windows Service for the web server. - #[arg(name = "install")] + #[command(name = "install")] Install {}, /// Uninstall the current Windows Service. - #[arg(name = "uninstall")] + #[command(name = "uninstall")] Uninstall {}, }