mirror of
https://framagit.org/veretcle/scootaloo.git
synced 2025-07-21 09:31:19 +02:00
feature: make thread in Twitter thread in Mastodon
This commit is contained in:
11
src/main.rs
11
src/main.rs
@@ -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();
|
||||
|
Reference in New Issue
Block a user