From b8f49ef2126b59f0418bde1ea57ba2a2d9d50a05 Mon Sep 17 00:00:00 2001 From: Norman Walsh Date: Fri, 6 Jan 2023 14:30:03 +0000 Subject: [PATCH] Support --help as the only command-line argument --- toot/console.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toot/console.py b/toot/console.py index 0b3f96c..38e0656 100644 --- a/toot/console.py +++ b/toot/console.py @@ -673,7 +673,7 @@ def main(): command_name = sys.argv[1] if len(sys.argv) > 1 else None args = sys.argv[2:] - if not command_name: + if not command_name or command_name == "--help": return print_usage() user, app = config.get_active_user_app()