Skip to content

Commit

Permalink
process-media: change clobber file default to delete-dest
Browse files Browse the repository at this point in the history
  • Loading branch information
chapmanjacobd committed Nov 16, 2024
1 parent ccbe86f commit 217f9c5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions xklb/mediafiles/process_ffmpeg.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
def parse_args(defaults_override=None) -> argparse.Namespace:
parser = argparse_utils.ArgumentParser(usage=usage.process_ffmpeg)
arggroups.clobber(parser)
parser.set_defaults(file_over_file="delete-dest")
arggroups.process_ffmpeg(parser)
arggroups.debug(parser)

Expand Down
1 change: 1 addition & 0 deletions xklb/mediafiles/process_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ def parse_args() -> argparse.Namespace:
help="Exclude non-existent files from processing",
)
arggroups.clobber(parser)
parser.set_defaults(file_over_file="delete-dest")
arggroups.debug(parser)

arggroups.paths_or_stdin(parser)
Expand Down
1 change: 1 addition & 0 deletions xklb/mediafiles/process_media.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ def parse_args() -> argparse.Namespace:

arggroups.process_ffmpeg(parser)
arggroups.clobber(parser)
parser.set_defaults(file_over_file="delete-dest")
arggroups.ocrmypdf(parser)
arggroups.debug(parser)

Expand Down
1 change: 1 addition & 0 deletions xklb/mediafiles/process_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def parse_args() -> argparse.Namespace:
)
parser.add_argument("--clean-path", action=argparse.BooleanOptionalAction, default=True, help="Clean output path")
arggroups.clobber(parser)
parser.set_defaults(file_over_file="delete-dest")
arggroups.ocrmypdf(parser)
arggroups.requests(parser)
arggroups.download(parser)
Expand Down

0 comments on commit 217f9c5

Please sign in to comment.