Skip to content

Commit

Permalink
fix conflicting short CLI option (#1215)
Browse files Browse the repository at this point in the history
  • Loading branch information
getzze authored Feb 26, 2025
1 parent 9e5b02b commit 2896dac
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
2 changes: 1 addition & 1 deletion changelog.d/748.change.rst
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Add a skip-wrong-fps cli option to completely skip subtitles with FPS different from the video FPS (if detected)
Add a --skip-wrong-fps cli option to completely skip subtitles with FPS different from the video FPS (if detected)
18 changes: 15 additions & 3 deletions src/subliminal/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,9 +469,15 @@ def cache(ctx: click.Context, clear_subliminal: bool) -> None:
'Do not use this unless your media player requires it.'
),
)
@click.option('-f', '--force', is_flag=True, default=False, help='Force download even if a subtitle already exist.')
@click.option(
'-w',
'-f',
'--force',
is_flag=True,
default=False,
help='Force download even if a subtitle already exist.',
)
@click.option(
'-W',
'--skip-wrong-fps',
is_flag=True,
default=False,
Expand Down Expand Up @@ -531,7 +537,13 @@ def cache(ctx: click.Context, clear_subliminal: bool) -> None:
default='alpha2',
help='Format of the language code in the saved subtitle name. Default is a 2-letter language code.',
)
@click.option('-w', '--max-workers', type=click.IntRange(1, 50), default=None, help='Maximum number of threads to use.')
@click.option(
'-w',
'--max-workers',
type=click.IntRange(1, 50),
default=None,
help='Maximum number of threads to use.',
)
@click.option(
'-z/-Z',
'--archives/--no-archives',
Expand Down

0 comments on commit 2896dac

Please sign in to comment.