Commented out 'help' option for now to use the built-in help

master
Aaron Johnon 5 months ago
parent e442cb6b1b
commit d5e0b32109

@ -25,7 +25,7 @@ codegen-units = 2
panic = "unwind" panic = "unwind"
[profile.release] [profile.release]
opt-level = "z" opt-level = 3
strip = "symbols" strip = "symbols"
lto = true lto = true
codegen-units = 1 codegen-units = 1

@ -26,7 +26,7 @@ struct TelegramResponse {
} }
fn main() -> Result<()> { fn main() -> Result<()> {
let matches = Command::new("tbotsend") let matches = Command::new("tbotsend-rs")
.version("development") .version("development")
.arg(Arg::new("config").short('f').long("config").value_name("FILE")) .arg(Arg::new("config").short('f').long("config").value_name("FILE"))
.arg(Arg::new("chatid").short('c').long("chatid").value_name("CHATID")) .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("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("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("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)) .arg(Arg::new("message").num_args(1..).required(false))
.get_matches(); .get_matches();

Loading…
Cancel
Save