From 0d1d0fa1558c61185241610f89be02216a9ef2a4 Mon Sep 17 00:00:00 2001 From: Gwendal Date: Thu, 15 Nov 2018 21:13:24 +0100 Subject: [PATCH] Update help message and README --- README.md | 5 +++-- src/main/kotlin/bandcampcollectiondownloader/Main.kt | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b1c08f9..ac0559a 100644 --- a/README.md +++ b/README.md @@ -4,20 +4,21 @@ A command-line tool written in Kotlin to automatically download all albums of a ``` -Usage:
[-h] -c= [-d=] [-f=] +Usage:
[-h] [-c=] [-d=] [-f=] The bandcamp user account from which all albums must be downloaded. -c, --cookies-file= A JSON file with valid bandcamp credential cookies. "Cookie Quick Manager" can be used to obtain this file after logging into bandcamp. (visit https://addons.mozilla.org/en-US/firefox/addon/cookie-quick-manager/). + If no cookies file is provided, cookies from the local Firefox installation are used (Linux only). -d, --download-folder= The folder in which downloaded albums must be extracted. The following structure is considered: // - . + (default: current folder) -f, --audio-format= The chosen audio format of the files to download (default: vorbis). Possible values: flac, wav, aac-hi, mp3-320, aiff-lossless, vorbis, mp3-v0, alac. -h, --help Display this help message. - ``` ## Bandcamp authentication diff --git a/src/main/kotlin/bandcampcollectiondownloader/Main.kt b/src/main/kotlin/bandcampcollectiondownloader/Main.kt index 78cc768..1dfe2bb 100644 --- a/src/main/kotlin/bandcampcollectiondownloader/Main.kt +++ b/src/main/kotlin/bandcampcollectiondownloader/Main.kt @@ -13,7 +13,8 @@ data class Args( @CommandLine.Option(names = arrayOf("--cookies-file", "-c"), required = false, description = arrayOf("A JSON file with valid bandcamp credential cookies.", """"Cookie Quick Manager" can be used to obtain this file after logging into bandcamp.""", - "(visit https://addons.mozilla.org/en-US/firefox/addon/cookie-quick-manager/).")) + "(visit https://addons.mozilla.org/en-US/firefox/addon/cookie-quick-manager/).", + "If no cookies file is provided, cookies from the local Firefox installation are used (Linux only).")) var pathToCookiesFile: Path? = null, @CommandLine.Option(names = arrayOf("--audio-format", "-f"), required = false,