diff --git a/src/main.rs b/src/main.rs
index dbf086f..1835200 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,4 +1,4 @@
-use std::{fs::File, io::read_to_string, process, thread, time::Duration};
+use std::{borrow::Cow, fs::File, io::read_to_string, path::Path, process, thread, time::Duration};
use anyhow::{anyhow, bail, Context};
use clap::Parser;
@@ -20,7 +20,7 @@ fn main() -> anyhow::Result<()> {
return Ok(());
}
- let opts = match get_config()? {
+ let opts = match get_config(args.config.as_deref())? {
Some(config) => config.merge_onto_self(args),
None => args,
};
@@ -47,20 +47,23 @@ fn main() -> anyhow::Result<()> {
Err(anyhow!("Some user input was detected!"))
}
-fn get_config() -> anyhow::Result