From e845d2738cf964c79be931b6edd52bb874892903 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Mon, 7 Jul 2025 02:00:40 -0700 Subject: feat: Refine development help strings --- src/oguri/cli.py | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/src/oguri/cli.py b/src/oguri/cli.py index 3575c67..f3781a4 100644 --- a/src/oguri/cli.py +++ b/src/oguri/cli.py @@ -7,24 +7,24 @@ from . import constants @click.group(cls=ClickAliasedGroup) def cli(): - """A command-line tool for AniList.""" + """A command-line tool for AniList""" pass @cli.command(aliases=["s"]) @click.argument("day", required=False, default="today") -@click.option("--reverse", is_flag=True, help="Reverse the order of the schedule.") +@click.option("--reverse", is_flag=True, help="Reverse the order of the schedule") @click.option( - "--exact", is_flag=True, help="Show exact airing times instead of relative times." + "--exact", is_flag=True, help="Show exact airing times instead of relative times" ) -@click.option("--first", is_flag=True, help="Show only first airing episodes.") +@click.option("--first", is_flag=True, help="Show only first airing episodes") @click.option( "--sort", "sort_by", type=click.Choice(["time", "episode"], case_sensitive=False), default="time", - help="Sort the schedule by time or episode.", + help="Sort the schedule by time or episode", ) @click.option( "--country", @@ -32,9 +32,9 @@ def cli(): multiple=True, type=click.Choice(constants.COUNTRIES, case_sensitive=False), default=constants.COUNTRIES, - help="Filter by country of origin. Can be used multiple times. Not an exhaustive list.", + help="Filter by country of origin. Can be used multiple times (default: JP, KR, CN)", ) -@click.option("--episode", type=int, help="Filter by episode number.") +@click.option("--episode", type=int, help="Filter by episode number") @click.option( "--format", "formats", @@ -51,8 +51,8 @@ def cli(): default=constants.SOURCES, help="Filter by source. Can be used multiple times.", ) -@click.option("--year", type=int, help="Filter by airing year.") -@click.option("--month", type=int, help="Filter by airing month (1-12).") +@click.option("--year", type=int, help="Filter by airing year") +@click.option("--month", type=int, help="Filter by airing month (1-12)") @click.option( "--genre", "genres", @@ -75,8 +75,7 @@ def schedule( month, genres, ): - """ - Shows the airing schedule for a given day. + """Shows the airing schedule for a given day DAY can be "today", "tomorrow", "yesterday", or an integer representing the number of days from now. """ -- cgit v1.2.3