|
|
@ -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();
|
|
|
|
|
|
|
|
|
|
|
|