mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-03 20:13:02 +00:00
b40f05cc7c
+ rewrite migrations logic + rename encode_password to hash_password + update image sizes (add medium size) + rename image endpoints
36 lines
981 B
Python
36 lines
981 B
Python
from app.settings import ALLARGS, Info
|
|
from tabulate import tabulate
|
|
|
|
args = ALLARGS
|
|
|
|
help_args_list = [
|
|
["--help", "-h", "Show this help message"],
|
|
["--version", "-v", "Show the app version"],
|
|
["--host", "", "Set the host"],
|
|
["--port", "", "Set the port"],
|
|
["--config", "", "Set the config path"],
|
|
["--no-periodic-scan", "-nps", "Disable periodic scan"],
|
|
["--pswd", "", "Recover a password"],
|
|
[
|
|
"--scan-interval",
|
|
"-psi",
|
|
"Set the scan interval in seconds. Default 600s (10 minutes)",
|
|
],
|
|
[
|
|
"--build",
|
|
"",
|
|
"Build the application (in development)",
|
|
],
|
|
]
|
|
|
|
HELP_MESSAGE = f"""
|
|
Swing Music v{Info.SWINGMUSIC_APP_VERSION}
|
|
|
|
A beautiful, self-hosted music player for your local audio files.
|
|
Like Spotify ... but bring your own music.
|
|
|
|
Usage: ./swingmusic [options] [args]
|
|
|
|
{tabulate(help_args_list, headers=["Option", "Alias", "Description"], tablefmt="psql", maxcolwidths=[None, None, 40])}
|
|
"""
|