Update --help output

This commit is contained in:
jetfir3
2023-12-08 13:03:14 -05:00
committed by GitHub
parent 1643199e3b
commit 54119f194b
2 changed files with 25 additions and 46 deletions
+4 -4
View File
@@ -52,17 +52,17 @@ bash <(curl -sSL https://spotx-official.github.io/run.sh)
| `-h` | hide non-music on home screen | | `-h` | hide non-music on home screen |
| `--help` | print options | | `--help` | print options |
| `-i` | enable interactive mode | | `-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) | | `--installmac` | install latest supported client (macOS) |
| `-l` | [no lyrics background color](https://github.com/SpotX-Official/SpotX-Bash/issues/20#issuecomment-1762040019) | | `-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) | | `-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` | [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 <path>` | set path to Spotify |
| `-S` | skip [codesigning](https://github.com/SpotX-Official/SpotX-Bash/discussions/3) (macOS) | | `-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 | | `--uninstall` | uninstall SpotX-Bash |
| `-v` | print SpotX-Bash version | | `-v` | print SpotX-Bash version |
| `-V [version]` | install client version (macOS) | | `-V <version>` | install client version (macOS) |
**Examples:** **Examples:**
+21 -42
View File
@@ -7,51 +7,30 @@ case $(uname | tr '[:upper:]' '[:lower:]') in
*) platformType='Linux' ;; *) platformType='Linux' ;;
esac esac
if [[ "${platformType}" == "macOS" ]]; then show_help () {
show_help () { echo -e \
echo -e \
"Options: "Options:
-B : block Spotify auto-updates (--blockupdates) -B, --blockupdates : block Spotify auto-updates [macOS]
-c : clear Spotify app cache (--clearcache) -c, --clearcache : clear Spotify app cache
-d : enable developer mode (--devmode) -d, --devmode : enable developer mode
-e : exclude all experimental features (--noexp) -e, --noexp : exclude all experimental features
-f : force SpotX-Bash to run (--force) -f, --force : force SpotX-Bash to run
-h : hide non-music on home screen (--hide) -h, --hide : hide non-music on home screen
--help : print this help message --help : print this help message
-i : enable interactive mode (--interactive) -i, --interactive : enable interactive mode
--installmac : install latest supported client version --installdeb : install latest client deb pkg on APT-based distros [Linux]
-l : no lyrics background color (--lyricsnocolor) --installmac : install latest supported client version [macOS]
-o : use old home screen UI (--oldui) -l, --lyricsnocolor : no lyrics background color
-p : paid premium-tier subscriber (--premium) -o, --oldui : use old home screen UI
-P [path] : set path to Spotify -p, --premium : paid premium-tier subscriber
-S : skip codesigning (--skipcodesign) -P <path> : set path to Spotify
--uninstall : uninstall SpotX-Bash -S, --skipcodesign : skip codesigning [macOS]
-v : print SpotX-Bash version (--version) --stable : use with '--installdeb' for stable branch [Linux]
-V [version] : install specific client version --uninstall : uninstall SpotX-Bash
-v, --version : print SpotX-Bash version
-V <version> : 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' clear='\033[0m'
green='\033[0;32m' green='\033[0;32m'