From d71f354f07fc3b97993961237c50043dc9b0724c Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Thu, 19 Oct 2023 14:40:43 -0400 Subject: [PATCH] debug flag --- configs/scripts/git-authors-multirepo | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/configs/scripts/git-authors-multirepo b/configs/scripts/git-authors-multirepo index e2ef19f..1af5be8 100755 --- a/configs/scripts/git-authors-multirepo +++ b/configs/scripts/git-authors-multirepo @@ -11,18 +11,21 @@ def main() -> int: description="git authors, but for multiple repos at once" ) ap.add_argument( - "walk_start_dir", + "--start", help="Directory to start walking from", default=Path("."), type=Path, ) + ap.add_argument("--log-repos", help="Log the repos found", action="store_true") args = ap.parse_args() # Find every subdirectory that is a git repo git_dirs = [] - for path in args.walk_start_dir.iterdir(): + for path in args.start.iterdir(): if path.is_dir() and (path / ".git").is_dir(): git_dirs.append(path) + if args.log_repos: + print(f"Reading GIT repo at: {path}") # Collect the results of `git authors` from each repo authors = []