|
@@ -218,8 +218,8 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|
|
let mut args = std::env::args();
|
|
|
let _ = args.next();
|
|
|
let mut handles = vec![];
|
|
|
- for config_file in args {
|
|
|
- let toml_s = std::fs::read_to_string(config_file)?;
|
|
|
+ for config_file in args.flat_map(|a| glob::glob(a.as_str()).unwrap()) {
|
|
|
+ let toml_s = std::fs::read_to_string(config_file?)?;
|
|
|
let config = toml::from_str(&toml_s)?;
|
|
|
let handle: task::JoinHandle<Result<(), MessengerError>> =
|
|
|
tokio::spawn(manage_conversation(config));
|