move clap; fix version

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-05-20 08:11:05 +00:00 committed by June 🍓🦴
parent 74832bdc47
commit 2dd5cf8c68
4 changed files with 11 additions and 10 deletions

View file

@ -1,20 +0,0 @@
//! Integration with `clap`
use std::path::PathBuf;
pub use clap::Parser;
use super::conduwuit_version;
/// Commandline arguments
#[derive(Parser, Debug)]
#[clap(version = conduwuit_version(), about, long_about = None)]
pub struct Args {
#[arg(short, long)]
/// Optional argument to the path of a conduwuit config TOML file
pub config: Option<PathBuf>,
}
/// Parse commandline arguments into structured data
#[must_use]
pub fn parse() -> Args { Args::parse() }

View file

@ -13,7 +13,6 @@ use tracing::debug;
use crate::{Error, Result};
pub mod clap;
pub mod content_disposition;
pub mod defer;