From ecc8c0ba0673e79f58a521a3daacb1d8df0d8a12 Mon Sep 17 00:00:00 2001 From: getzze Date: Mon, 24 Jun 2024 12:36:54 +0100 Subject: [PATCH] revert to using --config, not --config-file --- HISTORY.rst | 2 +- docs/user/usage.rst | 2 +- subliminal/cli.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/HISTORY.rst b/HISTORY.rst index 1a5a5baa..4c7fe47f 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -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 `_). +* Load CLI options from a configuration file with the ``--config/-c`` option (`#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 `_). * Add opensubtitlescom provider * Add gestdown provider diff --git a/docs/user/usage.rst b/docs/user/usage.rst index 7fb600ae..dae380f9 100644 --- a/docs/user/usage.rst +++ b/docs/user/usage.rst @@ -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 `_ format with the ``-config-file/-c`` option. If no configuration file is +You can use a configuration file in the `TOML `_ 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 `_: diff --git a/subliminal/cli.py b/subliminal/cli.py index 8014902c..04c7042b 100644 --- a/subliminal/cli.py +++ b/subliminal/cli.py @@ -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,