From 7df814f680e0425bffbc3066609f7ffaa2bc2056 Mon Sep 17 00:00:00 2001 From: insolor Date: Sat, 23 Sep 2023 21:19:41 +0300 Subject: [PATCH] Make path parameter mandatory --- tools/search_offsets/search.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tools/search_offsets/search.py b/tools/search_offsets/search.py index 38dcb8a..bf6bed4 100644 --- a/tools/search_offsets/search.py +++ b/tools/search_offsets/search.py @@ -50,10 +50,7 @@ def print_found(patternt_names: Iterable[str], found: Mapping[str, int]): @app.command() -def main(path: Optional[Path] = typer.Option(None)): - if path is None: - path = Path("/mnt/second/SteamLibrary/steamapps/common/Dwarf Fortress/Dwarf Fortress.exe") - +def main(path: Path): patterns = load_patterns() found = search(path, patterns) print_found(map(attrgetter("name"), patterns), found)