Help with list command discovery

This commit is contained in:
Ivan Habunek 2023-12-27 10:16:19 +01:00
parent 556741e864
commit 41b77cc9de
No known key found for this signature in database
GPG Key ID: F5F0623FF5EBCB3D
1 changed files with 2 additions and 1 deletions

View File

@ -11,7 +11,8 @@ from toot.output import print_list_accounts, print_lists, print_warning
def lists(ctx: click.Context):
"""Display and manage lists"""
if ctx.invoked_subcommand is None:
print_warning("`toot lists` is deprecated in favour of `toot lists list`")
print_warning("`toot lists` is deprecated in favour of `toot lists list`.\n" +
"Run `toot lists -h` to see other list-related commands.")
user, app = config.get_active_user_app()
if not user or not app: