This commit is contained in:
Atanas Yankov 2022-10-23 11:09:00 +03:00
parent e5958a20de
commit ad12cc4308
1 changed files with 8 additions and 2 deletions

View File

@ -24,8 +24,14 @@ impl<'a> Config<'a> {
.collect();
let absolute_offset = matches.get_flag("absolute-offset");
let x: u16 = matches.get_one("x").cloned().expect("X offset must be present");
let y: i16 = matches.get_one("y").cloned().expect("Y offset must be present");
let x: u16 = matches
.get_one("x")
.cloned()
.expect("X offset must be present");
let y: i16 = matches
.get_one("y")
.cloned()
.expect("Y offset must be present");
let use_blocks = matches.get_flag("blocks");
let transparent = matches.get_flag("transparent");