INNER CODE UNIT · Python
add_video_args
KennethJAllen/proper-pixel-art · proper_pixel_art/cli.py:92
def add_video_args(parser: argparse.ArgumentParser) -> argparse.ArgumentParser:
"""Add the video/GIF-only arguments (ignored for image inputs)."""
video_group = parser.add_argument_group("Video/GIF options")
video_group.add_argument(
"-f",
"--format",
dest="output_format",
choices=["mp4", "gif"],
default=None,
help=(
"Output format (default: inferred from output extension, then input extension). "
"Applies to video/GIF inputs only; ignored for images."
),
)
video_group.add_argument(
"-n",
"--sample-frames",
dest="sample_frames",