Skip to content
This repository has been archived by the owner on May 20, 2024. It is now read-only.

Commit

Permalink
Make path parameter mandatory
Browse files Browse the repository at this point in the history
  • Loading branch information
insolor committed Sep 23, 2023
1 parent 1310922 commit 7df814f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tools/search_offsets/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7df814f

Please sign in to comment.