Skip to content

Commit e8b6f7a

Browse files
authored
Add allow_hypen_values (#17)
Without this, negative offsets for GPU/memory do not work. Handy for underclocking/optimising clocks for workloads
1 parent f6feecc commit e8b6f7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ enum Commands {
3939
#[group(required = true, multiple = true)]
4040
struct Sets {
4141
/// GPU frequency offset
42-
#[arg(short, long)]
42+
#[arg(short, long, allow_hyphen_values = true)]
4343
freq_offset: Option<i32>,
4444
/// GPU memory frequency offset
45-
#[arg(long = "mem-offset")]
45+
#[arg(long = "mem-offset", allow_hyphen_values = true)]
4646
mem_offset: Option<i32>,
4747
/// GPU power limit in milliwatts
4848
#[arg(short, long)]

0 commit comments

Comments
 (0)