bitmagnet-io / bitmagnet

A self-hosted BitTorrent indexer, DHT crawler, content classifier and torrent search engine with web UI, GraphQL API and Servarr stack integration.
https://bitmagnet.io/
MIT License
2.06k stars 78 forks source link

Don't use DB when `--help` specified #189

Closed davispuh closed 3 months ago

davispuh commented 3 months ago

Describe the bug

Passing --help starts DB migration which is unexpected. I would say it shouldn't even attempt to connect to DB.

To Reproduce

Steps to reproduce the behavior:

$ bitmagnet --help
INFO    migrator        migrations/migrator.go:68       checking and applying migrations...                                                                                         

Expected behavior

Output help info without doing DB migration. Even better - don't connect to DB at all.

Environment Information (Required)

davispuh commented 3 months ago

Same issue also for bitmagnet config show