feature: make thread in Twitter thread in Mastodon

This commit is contained in:
VC
2022-04-23 13:39:41 +02:00
parent abfb2ff50a
commit 13bb6d6f37
5 changed files with 142 additions and 86 deletions

View File

@@ -1,14 +1,7 @@
// self
use scootaloo::*;
// clap
use clap::{App, Arg, SubCommand};
// log
use log::{LevelFilter, error};
use simple_logger::SimpleLogger;
// std
use std::str::FromStr;
const DEFAULT_CONFIG_PATH: &'static str = "/usr/local/etc/scootaloo.toml";
@@ -21,7 +14,7 @@ fn main() {
.short("c")
.long("config")
.value_name("CONFIG_FILE")
.help(&*format!("TOML config file for scootaloo (default {})", DEFAULT_CONFIG_PATH))
.help(&format!("TOML config file for scootaloo (default {})", DEFAULT_CONFIG_PATH))
.takes_value(true)
.display_order(1))
.arg(Arg::with_name("log_level")
@@ -49,7 +42,7 @@ fn main() {
.short("c")
.long("config")
.value_name("CONFIG_FILE")
.help(&*format!("TOML config file for scootaloo (default {})", DEFAULT_CONFIG_PATH))
.help(&format!("TOML config file for scootaloo (default {})", DEFAULT_CONFIG_PATH))
.takes_value(true)
.display_order(1)))
.get_matches();