Skip to content

Commit fa4b521

Browse files
committed
Fix missing hyphen values parsing clap commands definition
1 parent 283490c commit fa4b521

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/args.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ pub struct ArgsClient {
5858
pub scroll_lock_led: Option<String>,
5959

6060
/// Shows volume osd and raises, loweres or mutes default sink volume
61-
#[arg(long, value_name = "raise|lower|mute-toggle|(±)number")]
61+
#[arg(long, value_name = "raise|lower|mute-toggle|(±)number", allow_hyphen_values = true)]
6262
pub output_volume: Option<String>,
6363

6464
/// Shows volume osd and raises, loweres or mutes default source volume
65-
#[arg(long, value_name = "raise|lower|mute-toggle|(±)number")]
65+
#[arg(long, value_name = "raise|lower|mute-toggle|(±)number", allow_hyphen_values = true)]
6666
pub input_volume: Option<String>,
6767

6868
/// Sets the maximum Volume
@@ -76,7 +76,7 @@ pub struct ArgsClient {
7676
pub device: Option<String>,
7777

7878
/// Shows brightness osd and raises or loweres all available sources of brightness device
79-
#[arg(long, value_name = "raise|lower|(±)number")]
79+
#[arg(long, value_name = "raise|lower|(±)number", allow_hyphen_values = true)]
8080
pub brightness: Option<String>,
8181

8282
/// Sets the minimum Brightness

0 commit comments

Comments
 (0)