Skip to content

Commit

Permalink
Fix cir keymap
Browse files Browse the repository at this point in the history
Signed-off-by: Sean Young <[email protected]>
  • Loading branch information
seanyoung committed May 31, 2024
1 parent a4ac02f commit 7bac6d9
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions cir/src/bin/cir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,6 @@ fn parse_scancode(arg: &str) -> Result<(String, u64), String> {
#[cfg(target_os = "linux")]
#[derive(Args)]
struct Keymap {
#[cfg(target_os = "linux")]
#[clap(flatten)]
device: RcDevice,

Expand Down Expand Up @@ -525,15 +524,12 @@ impl Subcommand for Commands {
.subcommand(List::augment_args(
Command::new("list").about("List IR and CEC devices"),
))
.subcommand_required(true)
.subcommand(List::augment_args(
.subcommand(Keymap::augment_args(
Command::new("keymap").about("Configure IR and CEC devices"),
))
.subcommand_required(true)
.subcommand(List::augment_args(
.subcommand(Test::augment_args(
Command::new("test").about("Receive IR and print to stdout"),
))
.subcommand_required(true);
));

cmd
}
Expand All @@ -553,15 +549,12 @@ impl Subcommand for Commands {
.subcommand(List::augment_args(
Command::new("list").about("List IR and CEC devices"),
))
.subcommand_required(true)
.subcommand(List::augment_args(
Command::new("keymap").about("Configure IR and CEC devices"),
))
.subcommand_required(true)
.subcommand(List::augment_args(
Command::new("test").about("Receive IR and print to stdout"),
))
.subcommand_required(true);
));

cmd
}
Expand Down

0 comments on commit 7bac6d9

Please sign in to comment.