mirror of
https://github.com/ihabunek/toot.git
synced 2024-11-03 04:17:21 -05:00
Support --help as the only command-line argument
This commit is contained in:
parent
4f9391f015
commit
b8f49ef212
@ -673,7 +673,7 @@ def main():
|
|||||||
command_name = sys.argv[1] if len(sys.argv) > 1 else None
|
command_name = sys.argv[1] if len(sys.argv) > 1 else None
|
||||||
args = sys.argv[2:]
|
args = sys.argv[2:]
|
||||||
|
|
||||||
if not command_name:
|
if not command_name or command_name == "--help":
|
||||||
return print_usage()
|
return print_usage()
|
||||||
|
|
||||||
user, app = config.get_active_user_app()
|
user, app = config.get_active_user_app()
|
||||||
|
Loading…
Reference in New Issue
Block a user