feat(cli): use an option for providing anime title for search and download command

This commit is contained in:
Benex254
2024-08-16 19:45:00 +03:00
parent 18c60691ca
commit 9cfa3aeea5
2 changed files with 14 additions and 4 deletions

View File

@@ -13,8 +13,13 @@ if TYPE_CHECKING:
help="Download anime using the anime provider for a specified range",
short_help="Download anime",
)
@click.argument(
"anime-titles", required=True, shell_complete=anime_titles_shell_complete, nargs=-1
@click.option(
"--anime-titles",
"--anime_title",
"-t",
required=True,
shell_complete=anime_titles_shell_complete,
multiple=True,
)
@click.option(
"--episode-range",

View File

@@ -8,8 +8,13 @@ from ..completion_functions import anime_titles_shell_complete
help="This subcommand directly interacts with the provider to enable basic streaming. Useful for binging anime.",
short_help="Binge anime",
)
@click.argument(
"anime_titles", required=True, shell_complete=anime_titles_shell_complete, nargs=-1
@click.option(
"--anime-titles",
"--anime_title",
"-t",
required=True,
shell_complete=anime_titles_shell_complete,
multiple=True,
)
@click.option(
"--episode-range",