Skip to content

Commit a41b405

Browse files
committed
Restrict values accepted by 'dgpu set'
1 parent 7022fc0 commit a41b405

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cli.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ pub fn app() -> App<'static, 'static> {
4848
.about("Set the current dGPU power state")
4949
.arg(Arg::with_name("state")
5050
.help("The power-state to be set")
51-
.possible_values(&["on", "off", "1", "0"])
51+
.possible_values(&["on", "off"])
5252
.required(true)
5353
.index(1)))
5454
.subcommand(SubCommand::with_name("get")

0 commit comments

Comments
 (0)