From 1c9c9bbece878286939abacfaec0daaecc559243 Mon Sep 17 00:00:00 2001 From: Jake Stanger Date: Sat, 20 Jan 2024 23:42:43 +0000 Subject: [PATCH] fix(cli): error when launched via `swaybar_command` Fixes #11 (again) --- src/cli.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/cli.rs b/src/cli.rs index feb29332..d0f05f1e 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -8,6 +8,11 @@ use serde::{Deserialize, Serialize}; pub struct Args { #[command(subcommand)] pub command: Option, + + /// `bar_id` argument passed by `swaybar_command`. + /// Not used. + #[arg(short('b'), hide(true))] + sway_bar_id: Option, } pub fn handle_response(response: Response) {