mirror of
https://github.com/fergalmoran/picard.git
synced 2025-12-25 02:40:03 +00:00
fix-header.py: output progress message (to stderr)
This commit is contained in:
@@ -282,10 +282,12 @@ def main():
|
||||
print("Skipping %s (%s)" % (path, info), file=sys.stderr)
|
||||
continue
|
||||
if args.in_place:
|
||||
print("Parsing and fixing %s (in place)" % path, file=sys.stderr)
|
||||
with open(path, 'w') as f:
|
||||
print(new_content, file=f)
|
||||
else:
|
||||
# by default, we just output to stdout
|
||||
print("Parsing and fixing %s (stdout)" % path, file=sys.stderr)
|
||||
print(new_content)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user