Skip to content

Commit

Permalink
Support --help as the only command-line argument
Browse files Browse the repository at this point in the history
  • Loading branch information
ndw authored and ihabunek committed Jan 19, 2023
1 parent 4f9391f commit b8f49ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion toot/console.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit b8f49ef

Please sign in to comment.