Skip to content

Commit

Permalink
refactor: specify arg type
Browse files Browse the repository at this point in the history
  • Loading branch information
athith-g committed Jun 16, 2024
1 parent 2831ad0 commit e9b44e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions middleware/decrypt.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def move_files(file_paths: list[Path], output_path: Path) -> None:

if __name__ == "__main__":
parser = ArgumentParser()
parser.add_argument("file_paths", nargs='+')
parser.add_argument("file_paths", nargs='+', type=Path)
parser.add_argument(
"--output-dir",
required=True,
Expand All @@ -84,7 +84,7 @@ def move_files(file_paths: list[Path], output_path: Path) -> None:

args = parser.parse_args()
output_dir = Path(args.output_dir)
paths = [Path(path) for path in args.file_paths]
paths = args.file_paths
keys = get_private_keys(paths)
decrypt_files(paths, keys, output_dir)
move_files(paths, output_dir)

0 comments on commit e9b44e0

Please sign in to comment.