Misc. clap improvements, , more accurate value names, ...

This commit is contained in:
2025-12-15 00:46:56 +09:00
parent 7b79f7b163
commit 6e914dec34
17 changed files with 26 additions and 33 deletions

View File

@@ -1,7 +1,7 @@
use std::path::PathBuf;
use anyhow::Context;
use clap::Parser;
use clap::{Parser, Subcommand};
use clap_verbosity_flag::{InfoLevel, Verbosity};
use tracing_subscriber::prelude::*;
@@ -26,15 +26,13 @@ pub struct ServerArgs {
pub disable_landlock: bool,
}
#[derive(Parser, Debug, Clone)]
#[derive(Subcommand, Debug, Clone)]
pub enum ServerCommand {
/// Start the server and listen for incoming connections on the unix socket
/// specified in the configuration file.
#[command()]
Listen,
/// Start the server using systemd socket activation.
#[command()]
SocketActivate,
}