Skip to content

Commit

Permalink
Merge pull request #412 from JakeStanger/fix/swaybar-command
Browse files Browse the repository at this point in the history
fix(cli): error when launched via `swaybar_command`
  • Loading branch information
JakeStanger authored Jan 20, 2024
2 parents 7d51155 + 1c9c9bb commit 2a45876
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 2a45876

Please sign in to comment.