From 6a729e49d448efa12bdc46ce4b187b875b79ec1e Mon Sep 17 00:00:00 2001 From: Awiteb Date: Sat, 20 Jul 2024 17:42:39 +0300 Subject: [PATCH] fix: Change the CLI settings Fixes: https://git.4rs.nl/OxideTalis/oxidetalis/issues/10 Reported-by: Awiteb Signed-off-by: Awiteb --- crates/oxidetalis_config/src/commandline.rs | 24 +++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/crates/oxidetalis_config/src/commandline.rs b/crates/oxidetalis_config/src/commandline.rs index 39a8173..c9d90c6 100644 --- a/crates/oxidetalis_config/src/commandline.rs +++ b/crates/oxidetalis_config/src/commandline.rs @@ -28,9 +28,29 @@ use oxidetalis_core::types::Size; use crate::{types::OpenApiViewer, IpOrUrl}; -#[derive(Parser)] -#[clap(version)] +/// Header message, used in the help message +const HEADER: &str = r#"Copyright (C) 2024 Awiteb , OxideTalis Contributors +License GNU AGPL-3.0-or-later +This is free software: you are free to change and redistribute it. +There is NO WARRANTY, to the extent permitted by law. + +Git repository: https://git.4rs.nl/oxidetalis/oxidetalis"#; + +/// Footer message, used in the help message +const FOOTER: &str = r#"Please report bugs to ."#; + /// Command-line arguments for the Oxidetalis server. +#[derive(Parser)] +#[clap( + name = "oxidetalis", + about = "OTMP homeserver written in Rust", + display_name = "oxidetalis", + author = "Awiteb , OxideTalis Contributors", + before_long_help = HEADER, + after_help = FOOTER, + version, + disable_colored_help = true +)] pub struct CliArgs { /// Path to the configuration file, toml format. #[clap(long, env = "OXIDETALIS_CONFIG")]