Invoke sync subcommand by default
MODIFY
plex_trakt_sync/cli.py
plex_trakt_sync/cli.py
from plex_trakt_sync.clear_trakt_collections import clear_trakt_collections
-@click.group()
-def cli():
+@click.group(invoke_without_command=True)
+@click.pass_context
+def cli(ctx):
"""
Plex-Trakt-Sync is a two-way-sync between trakt.tv and Plex Media Server
"""
- pass
+ if not ctx.invoked_subcommand:
+ main()
@click.command()

Invoke sync subcommand by default

https://stackoverflow.com/a/52054606/2314626