Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
glomatico committed Apr 17, 2024
1 parent 85431cf commit af602e6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spotify_web_downloader/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ def load_config_file(
@click.command()
@click.help_option("-h", "--help")
@click.version_option(__version__, "-v", "--version")
# CLI specific options
@click.argument(
"urls",
nargs=-1,
Expand Down Expand Up @@ -121,13 +122,15 @@ def load_config_file(
is_flag=True,
help="Print exceptions.",
)
# API specific options
@click.option(
"--cookies-path",
"-c",
type=Path,
default=spotify_api_sig.parameters["cookies_path"].default,
help="Path to .txt cookies file.",
)
# Downloader specific options
@click.option(
"--output-path",
"-o",
Expand Down Expand Up @@ -183,6 +186,7 @@ def load_config_file(
default=downloader_sig.parameters["truncate"].default,
help="Maximum length of the file/folder names.",
)
# DownloaderSong specific options
@click.option(
"--template-folder-album",
type=str,
Expand Down Expand Up @@ -220,6 +224,7 @@ def load_config_file(
default=downloader_song_sig.parameters["premium_quality"].default,
help="Download songs in premium quality.",
)
# DownloaderMusicVideo specific options
@click.option(
"--template-folder-music-video",
type=str,
Expand All @@ -238,6 +243,7 @@ def load_config_file(
default=downloader_music_video_sig.parameters["download_mode"].default,
help="Download mode for videos.",
)
# This option should always be last
@click.option(
"--no-config-file",
"-n",
Expand Down

0 comments on commit af602e6

Please sign in to comment.