diff --git a/aider/ctags.py b/aider/ctags.py index 863d390fe..cc4766cd6 100644 --- a/aider/ctags.py +++ b/aider/ctags.py @@ -1,7 +1,8 @@ import json +import sys -def print_tags_info(): - with open("tags.jsonl", "r") as tags_file: +def print_tags_info(filename): + with open(filename, "r") as tags_file: for line in tags_file: tag = json.loads(line) scope = tag.get("scope", "N/A") @@ -11,4 +12,5 @@ def print_tags_info(): print(scope, kind, name, signature) if __name__ == "__main__": - print_tags_info() + for filename in sys.argv[1:]: + print_tags_info(filename)