Skip to content

Commit

Permalink
fix(cli): error when launched via swaybar_command
Browse files Browse the repository at this point in the history
Fixes #11 (again)
  • Loading branch information
JakeStanger committed Jan 20, 2024
1 parent 7d51155 commit 1c9c9bb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ use serde::{Deserialize, Serialize};
pub struct Args {
#[command(subcommand)]
pub command: Option<Command>,

/// `bar_id` argument passed by `swaybar_command`.
/// Not used.
#[arg(short('b'), hide(true))]
sway_bar_id: Option<String>,
}

pub fn handle_response(response: Response) {
Expand Down

0 comments on commit 1c9c9bb

Please sign in to comment.