From 54119f194b9399edbfc34907450ed70279c7bddd Mon Sep 17 00:00:00 2001 From: jetfir3 <95306468+jetfir3@users.noreply.github.com> Date: Fri, 8 Dec 2023 13:03:14 -0500 Subject: [PATCH] Update --help output --- README.md | 8 +++---- spotx.sh | 63 +++++++++++++++++++------------------------------------ 2 files changed, 25 insertions(+), 46 deletions(-) diff --git a/README.md b/README.md index fa3064c..7ebc1cd 100644 --- a/README.md +++ b/README.md @@ -52,17 +52,17 @@ bash <(curl -sSL https://spotx-official.github.io/run.sh) | `-h` | hide non-music on home screen | | `--help` | print options | | `-i` | enable interactive mode | -| `--installdeb` | install latest client deb pkg on APT-based distros (linux) | +| `--installdeb` | install latest client deb pkg on APT-based distros (Linux) | | `--installmac` | install latest supported client (macOS) | | `-l` | [no lyrics background color](https://github.com/SpotX-Official/SpotX-Bash/issues/20#issuecomment-1762040019) | | `-o` | use [old home screen UI](https://github.com/SpotX-Official/SpotX-Bash/wiki/SpotX%E2%80%90Bash-FAQ#what-is-the-old-and-new-ui) | | `-p` | [paid premium-tier subscriber](https://github.com/SpotX-Official/SpotX-Bash/wiki/SpotX%E2%80%90Bash-FAQ#can-spotx-bash-be-used-with-a-paid-premium-account) | -| `-P [path]` | set path to Spotify | +| `-P ` | set path to Spotify | | `-S` | skip [codesigning](https://github.com/SpotX-Official/SpotX-Bash/discussions/3) (macOS) | -| `--stable` | use with '--installdeb' for stable branch (linux) | +| `--stable` | use with '--installdeb' for stable branch (Linux) | | `--uninstall` | uninstall SpotX-Bash | | `-v` | print SpotX-Bash version | -| `-V [version]` | install client version (macOS) | +| `-V ` | install client version (macOS) | **Examples:** diff --git a/spotx.sh b/spotx.sh index afc516e..263e6dd 100644 --- a/spotx.sh +++ b/spotx.sh @@ -7,51 +7,30 @@ case $(uname | tr '[:upper:]' '[:lower:]') in *) platformType='Linux' ;; esac -if [[ "${platformType}" == "macOS" ]]; then - show_help () { - echo -e \ +show_help () { + echo -e \ "Options: --B : block Spotify auto-updates (--blockupdates) --c : clear Spotify app cache (--clearcache) --d : enable developer mode (--devmode) --e : exclude all experimental features (--noexp) --f : force SpotX-Bash to run (--force) --h : hide non-music on home screen (--hide) ---help : print this help message --i : enable interactive mode (--interactive) ---installmac : install latest supported client version --l : no lyrics background color (--lyricsnocolor) --o : use old home screen UI (--oldui) --p : paid premium-tier subscriber (--premium) --P [path] : set path to Spotify --S : skip codesigning (--skipcodesign) ---uninstall : uninstall SpotX-Bash --v : print SpotX-Bash version (--version) --V [version] : install specific client version +-B, --blockupdates : block Spotify auto-updates [macOS] +-c, --clearcache : clear Spotify app cache +-d, --devmode : enable developer mode +-e, --noexp : exclude all experimental features +-f, --force : force SpotX-Bash to run +-h, --hide : hide non-music on home screen +--help : print this help message +-i, --interactive : enable interactive mode +--installdeb : install latest client deb pkg on APT-based distros [Linux] +--installmac : install latest supported client version [macOS] +-l, --lyricsnocolor : no lyrics background color +-o, --oldui : use old home screen UI +-p, --premium : paid premium-tier subscriber +-P : set path to Spotify +-S, --skipcodesign : skip codesigning [macOS] +--stable : use with '--installdeb' for stable branch [Linux] +--uninstall : uninstall SpotX-Bash +-v, --version : print SpotX-Bash version +-V : install specific client version [macOS] " } -else - show_help () { - echo -e \ -"Options: --c : clear Spotify app cache (--clearcache) --d : enable developer mode (--devmode) --e : exclude all experimental features (--noexp) --f : force SpotX-Bash to run (--force) --h : hide non-music on home screen (--hide) ---help : print this help message --i : enable interactive mode (--interactive) ---installdeb : install latest client deb pkg on APT-based distros --l : no lyrics background color (--lyricsnocolor) --o : use old home screen UI (--oldui) --p : paid premium-tier subscriber (--premium) --P [path] : set path to Spotify ---stable : use with '--installdeb' for stable branch ---uninstall : uninstall SpotX-Bash --v : print SpotX-Bash version (--version) -" -} -fi clear='\033[0m' green='\033[0;32m'