Skip to content

Commit

Permalink
Allow active line opts individually
Browse files Browse the repository at this point in the history
  • Loading branch information
JuniorIsAJitterbug committed Jun 8, 2024
1 parent 037f376 commit 7c31778
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions src/tbc_video_export/opts/opt_validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,13 @@ def _validate_line_opts(parser: argparse.ArgumentParser, opts: Opts) -> None:
"last_active_frame_line",
]

if any(getattr(opts, x) is not None for x in field_frame_opts):
if opts.vbi or opts.full_vertical or opts.letterbox:
parser.error(
"arguments [--vbi | --letterbox]: not allowed with arguments "
"[--ffll | --lfll | --ffrl | --lfrl]"
)
elif not all(getattr(opts, x) is not None for x in field_frame_opts):
parser.error(
"the following arguments are required: "
"[--ffll & --lfll & --ffrl & --lfrl]"
)
if any(getattr(opts, x) is not None for x in field_frame_opts) and (
opts.vbi or opts.full_vertical or opts.letterbox
):
parser.error(
"arguments [--vbi | --letterbox]: not allowed with arguments "
"[--ffll | --lfll | --ffrl | --lfrl]"
)


def _validate_video_system(
Expand Down

0 comments on commit 7c31778

Please sign in to comment.