Skip to content

Commit

Permalink
fix: windows install/uninstall subcommand
Browse files Browse the repository at this point in the history
  • Loading branch information
joseluisq committed Jun 4, 2023
1 parent 3a71479 commit 7970383
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/settings/cli.rs
Expand Up @@ -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<Commands>,
}

#[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 {},
}

0 comments on commit 7970383

Please sign in to comment.