Start taking control over exit on argument parsing failure

This commit is contained in:
Nadja Reitzenstein 2022-06-24 15:17:05 +02:00
parent c9a8ef7db4
commit 7a0a50dc3f

View File

@ -75,7 +75,12 @@ fn main() -> miette::Result<()> {
.max_values(1)
.min_values(0)
.default_missing_value(""))
.get_matches();
.try_get_matches();
let matches = match matches {
Ok(m) => m,
Err(error) => error.exit(),
};
let configpath = matches
.value_of("config")