Settings, took care of warnings
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
use std::path::{Path, PathBuf};
|
||||
|
||||
use clap::Parser;
|
||||
|
||||
mod cli;
|
||||
@@ -10,12 +8,8 @@ type Result<T> = anyhow::Result<T>;
|
||||
fn main() -> Result<()> {
|
||||
let cliargs = cli::CliArgs::parse();
|
||||
logger::init(&cliargs);
|
||||
let manifest_path;
|
||||
if let Some(mp) = cliargs.manifest_path() {
|
||||
manifest_path = mp;
|
||||
} else {
|
||||
manifest_path = PathBuf::from("manifest.json");
|
||||
};
|
||||
xmpd_gui::start(manifest_path)?;
|
||||
log::debug!("Cli: {cliargs:?}");
|
||||
xmpd_settings::Settings::get()?.load(Some(cliargs.settings_path()))?;
|
||||
xmpd_gui::start(cliargs.manifest_path())?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user