mirror of
https://github.com/Benexl/FastAnime.git
synced 2026-01-27 07:14:33 -08:00
feat(cli): use an option for providing anime title for search and download command
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user