Skip to content
This repository was archived by the owner on Dec 2, 2024. It is now read-only.

Commit

Permalink
Fix info for manual
Browse files Browse the repository at this point in the history
  • Loading branch information
tdakhran committed Jun 10, 2024
1 parent 290bc10 commit 73e0f3c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion razer-cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,10 @@ fn main() -> Result<()> {

// TODO: find a better way to detect auto mode in advance
let is_auto_mode = std::env::args_os().nth(1) == Some("auto".into());
let device = is_auto_mode.then_some(device::Device::detect()?);
let device = match is_auto_mode {
true => Some(device::Device::detect()?),
_ => None,
};
let feature_list = match device {
Some(ref device) => device.info.features,
_ => feature::ALL_FEATURES,
Expand Down

0 comments on commit 73e0f3c

Please sign in to comment.