fixed missing argument flag

This commit is contained in:
interface
2026-02-23 01:07:11 +01:00
parent e4930afc0e
commit f52dc481c7

View File

@@ -155,8 +155,10 @@ def main(args):
if args.replace_all != True: if args.replace_all != True:
if str(sourcepath_relative) in modified_files: if str(sourcepath_relative) in modified_files:
shutil.copy2(item.resolve(), target, follow_symlinks=args.follow_symlinks)
print(item.resolve()) if args.dry_run != True:
shutil.copy2(item.resolve(), target, follow_symlinks=args.follow_symlinks)
if args.verbose: if args.verbose:
@@ -182,7 +184,9 @@ def main(args):
print(output_copy) print(output_copy)
shutil.copy2(item.resolve(), target, follow_symlinks=args.follow_symlinks) if args.dry_run != True:
shutil.copy2(item.resolve(), target, follow_symlinks=args.follow_symlinks)
elif item.suffix == '.py': elif item.suffix == '.py':
@@ -202,9 +206,6 @@ def main(args):
with open(target, "w", encoding="utf-8") as f: with open(target, "w", encoding="utf-8") as f:
f.writelines(''.join(finalform)) f.writelines(''.join(finalform))
else:
pass
if args.verbose: if args.verbose:
output_writing = f'{white}Writing {item.name} => {target}{reset}' output_writing = f'{white}Writing {item.name} => {target}{reset}'