From 1c6e91b6f9aecb186bc3b10e139f67159c9c8c28 Mon Sep 17 00:00:00 2001 From: rlaphoenix Date: Mon, 29 Jan 2024 03:54:17 +0000 Subject: [PATCH] Rename --group to --tag --- devine/commands/dl.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/devine/commands/dl.py b/devine/commands/dl.py index 6654297..a8187a6 100644 --- a/devine/commands/dl.py +++ b/devine/commands/dl.py @@ -99,7 +99,7 @@ class dl: help="Language wanted for Subtitles.") @click.option("--proxy", type=str, default=None, help="Proxy URI to use. If a 2-letter country is provided, it will try get a proxy from the config.") - @click.option("--group", type=str, default=None, + @click.option("--tag", type=str, default=None, help="Set the Group Tag to be used, overriding the one in config if any.") @click.option("--sub-format", type=click.Choice(Subtitle.Codec, case_sensitive=False), default=Subtitle.Codec.SubRip, @@ -145,7 +145,7 @@ class dl: no_proxy: bool, profile: Optional[str] = None, proxy: Optional[str] = None, - group: Optional[str] = None, + tag: Optional[str] = None, *_: Any, **__: Any ): @@ -244,8 +244,8 @@ class dl: profile=self.profile ) - if group: - config.tag = group + if tag: + config.tag = tag # needs to be added this way instead of @cli.result_callback to be # able to keep `self` as the first positional