From 736977bc6981ea9b1d837438994463e1671c5bbe Mon Sep 17 00:00:00 2001 From: Roderick van Domburg Date: Wed, 27 Nov 2024 22:53:23 +0100 Subject: [PATCH] docs: document device type option Add --device-type documentation to README and improve help text to show available device type values. --- README.md | 5 +++++ src/main.rs | 1 + 2 files changed, 6 insertions(+) diff --git a/README.md b/README.md index a0e6910..3ba2e6d 100644 --- a/README.md +++ b/README.md @@ -109,6 +109,11 @@ Your music will start playing on the selected device. pleezer --name "My Deezer Player" ``` +- `--device-type`: Set how the device identifies itself to Deezer clients. Affects how the device appears in Deezer apps. Options are: web (default), mobile, tablet, or desktop. Example: + ```bash + pleezer --device-type mobile + ``` + - `-d` or `--device`: Select the output device. Use `?` to list available devices. If omitted, the system default output device is used. Examples: ```bash # List available devices diff --git a/src/main.rs b/src/main.rs index 7077544..b3497bf 100644 --- a/src/main.rs +++ b/src/main.rs @@ -46,6 +46,7 @@ struct Args { /// Set the device type to identify as to Deezer /// /// This affects how the device appears in Deezer apps. + /// Values: web, mobile, tablet, desktop #[arg(long, default_value_t = DeviceType::Web, env = "PLEEZER_DEVICE_TYPE")] device_type: DeviceType,