fix: Change the CLI settings

Fixes: #10
Reported-by: Awiteb <a@4rs.nl>
Signed-off-by: Awiteb <a@4rs.nl>
This commit is contained in:
Awiteb 2024-07-20 17:42:39 +03:00
parent 18fd708c26
commit abbc083371
Signed by: awiteb
GPG key ID: 3F6B55640AA6682F

View file

@ -28,9 +28,29 @@ use oxidetalis_core::types::Size;
use crate::{types::OpenApiViewer, IpOrUrl}; use crate::{types::OpenApiViewer, IpOrUrl};
#[derive(Parser)] /// Header message, used in the help message
#[clap(version)] const HEADER: &str = r#"Copyright (C) 2024 Awiteb <a@4rs.nl>, OxideTalis Contributors
License GNU AGPL-3.0-or-later <https://gnu.org/licenses/agpl-3.0>
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 <https://git.4rs.nl/oxidetalis/oxidetalis/issues>."#;
/// Command-line arguments for the Oxidetalis server. /// Command-line arguments for the Oxidetalis server.
#[derive(Parser)]
#[clap(
name = "oxidetalis",
about = "OTMP homeserver written in Rust",
display_name = "oxidetalis",
author = "Awiteb <a@4rs.nl>, OxideTalis Contributors",
before_long_help = HEADER,
after_help = FOOTER,
version,
disable_colored_help = true
)]
pub struct CliArgs { pub struct CliArgs {
/// Path to the configuration file, toml format. /// Path to the configuration file, toml format.
#[clap(long, env = "OXIDETALIS_CONFIG")] #[clap(long, env = "OXIDETALIS_CONFIG")]