Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/semiwrap/tool/update_yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ def add_subparser(cls, parent_parser, subparsers):
parser.add_argument(
"-v", "--verbose", help="Show full traceback", action="store_true"
)
parser.add_argument(
"-q",
"--quiet",
help="Only report updated files when some were updated",
action="store_true",
)

max_jobs = os.cpu_count() or 1

Expand Down Expand Up @@ -191,7 +197,8 @@ def _run(
)

if args.write:
print(files_updated, "files were updated")
if files_updated or not args.quiet:
print(files_updated, "files were updated")
return True

# When not writing, return True if no changes needed, False otherwise
Expand Down
Loading