diff options
| author | Fuwn <[email protected]> | 2025-07-07 02:00:40 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-07-07 02:00:40 -0700 |
| commit | e845d2738cf964c79be931b6edd52bb874892903 (patch) | |
| tree | e0a97b1b9d41011a3d2fee5119f23d844bf8f081 /src | |
| parent | refactor: Move option defaults to module (diff) | |
| download | oguri-e845d2738cf964c79be931b6edd52bb874892903.tar.xz oguri-e845d2738cf964c79be931b6edd52bb874892903.zip | |
feat: Refine development help strings
Diffstat (limited to 'src')
| -rw-r--r-- | src/oguri/cli.py | 21 |
1 files 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") [email protected]("--reverse", is_flag=True, help="Reverse the order of the schedule.") [email protected]("--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" ) [email protected]("--first", is_flag=True, help="Show only first airing episodes.") [email protected]("--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)", ) [email protected]("--episode", type=int, help="Filter by episode number.") [email protected]("--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.", ) [email protected]("--year", type=int, help="Filter by airing year.") [email protected]("--month", type=int, help="Filter by airing month (1-12).") [email protected]("--year", type=int, help="Filter by airing year") [email protected]("--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. """ |