From d5e0b3210981ed047625459432e5a85386d38461 Mon Sep 17 00:00:00 2001 From: Aaron Johnon Date: Thu, 24 Apr 2025 01:37:08 -0500 Subject: [PATCH] Commented out 'help' option for now to use the built-in help --- Cargo.toml | 2 +- src/main.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 31d4ff7..03524bd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,7 +25,7 @@ codegen-units = 2 panic = "unwind" [profile.release] -opt-level = "z" +opt-level = 3 strip = "symbols" lto = true codegen-units = 1 diff --git a/src/main.rs b/src/main.rs index 4b1e053..85d71b8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -26,7 +26,7 @@ struct TelegramResponse { } fn main() -> Result<()> { - let matches = Command::new("tbotsend") + let matches = Command::new("tbotsend-rs") .version("development") .arg(Arg::new("config").short('f').long("config").value_name("FILE")) .arg(Arg::new("chatid").short('c').long("chatid").value_name("CHATID")) @@ -34,7 +34,7 @@ fn main() -> Result<()> { .arg(Arg::new("parse").short('p').long("parse").default_value("MarkdownV2").value_name("MODE")) .arg(Arg::new("timeout").long("timeout").value_parser(clap::value_parser!(u8)).default_value("10").value_name("SECONDS")) .arg(Arg::new("silent").short('s').long("silent").action(ArgAction::SetTrue)) - .arg(Arg::new("help").short('h').long("help").action(ArgAction::Help)) + //.arg(Arg::new("help").short('h').long("help").action(ArgAction::Help)) .arg(Arg::new("message").num_args(1..).required(false)) .get_matches();