Skip to content

Commit

Permalink
revert to using --config, not --config-file
Browse files Browse the repository at this point in the history
  • Loading branch information
getzze committed Jun 24, 2024
1 parent e77fd76 commit ecc8c0b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Changelog
**release date:** *not released*

* Drop python2 support, the supported versions are `>=3.8,<=3.12`.
* Load CLI options from a configuration file with the ``--config-file/-c`` option (`#1084 <https://github.com/Diaoul/subliminal/pull/1084>`_).
* Load CLI options from a configuration file with the ``--config/-c`` option (`#1084 <https://github.com/Diaoul/subliminal/pull/1084>`_).
* Change default encoding of downloaded subtitles to 'utf-8' (not the original encoding). Use the ``--original-encoding`` cli option to recover the previous default behavior (`#1125 <https://github.com/Diaoul/subliminal/pull/1125>`_).
* Add opensubtitlescom provider
* Add gestdown provider
Expand Down
2 changes: 1 addition & 1 deletion docs/user/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Download English subtitles::
only. Otherwise you will get banned from the providers for abuse due to too many requests. If subliminal didn't
find subtitles for an old video, it's unlikely it will find subtitles for that video ever anyway.

You can use a configuration file in the `TOML <https://toml.io/>`_ format with the ``-config-file/-c`` option. If no configuration file is
You can use a configuration file in the `TOML <https://toml.io/>`_ format with the ``--config/-c`` option. If no configuration file is
provided, it looks for a ``subliminal.toml`` file in the default configuration folder for the application. This folder is
`OS dependent <https://github.com/platformdirs/platformdirs>`_:

Expand Down
2 changes: 1 addition & 1 deletion subliminal/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def plural(quantity: int, name: str, *, bold: bool = True, **kwargs: Any) -> str
)
@click.option(
'-c',
'--config-file',
'--config',
type=click.Path(dir_okay=False, path_type=pathlib.Path),
default=default_config_path,
callback=configure,
Expand Down

0 comments on commit ecc8c0b

Please sign in to comment.