mirror of
https://gitlab.com/fabinfra/fabaccess/bffh.git
synced 2024-11-25 08:07:57 +01:00
Start taking control over exit on argument parsing failure
This commit is contained in:
parent
c9a8ef7db4
commit
7a0a50dc3f
@ -75,7 +75,12 @@ fn main() -> miette::Result<()> {
|
|||||||
.max_values(1)
|
.max_values(1)
|
||||||
.min_values(0)
|
.min_values(0)
|
||||||
.default_missing_value(""))
|
.default_missing_value(""))
|
||||||
.get_matches();
|
.try_get_matches();
|
||||||
|
|
||||||
|
let matches = match matches {
|
||||||
|
Ok(m) => m,
|
||||||
|
Err(error) => error.exit(),
|
||||||
|
};
|
||||||
|
|
||||||
let configpath = matches
|
let configpath = matches
|
||||||
.value_of("config")
|
.value_of("config")
|
||||||
|
Loading…
Reference in New Issue
Block a user