fixed missing argument flag
This commit is contained in:
@@ -154,9 +154,11 @@ 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}'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user