Skip to content

Commit

Permalink
[fix]: conflicting short options in swhkd
Browse files Browse the repository at this point in the history
This patch fixes the conflicting short options in swhkd and implements
alternative short option forms.

Signed-off-by: innocentzero <[email protected]>
  • Loading branch information
InnocentZero committed Mar 19, 2024
1 parent c64dd6f commit 3c1273c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions swhkd/src/daemon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ impl KeyboardState {
#[command(version, about, long_about = None)]
struct Args {
/// Set a custom config file path.
#[arg(short, long, value_name = "FILE")]
#[arg(short = 'C', long, value_name = "FILE")]
config: Option<PathBuf>,

/// Set a custom repeat cooldown duration. Default is 250ms.
Expand All @@ -60,7 +60,7 @@ struct Args {
debug: bool,

/// Take a list of devices from the user
#[arg(short, long, num_args = 0.., value_delimiter = ' ')]
#[arg(short = 'D', long, num_args = 0.., value_delimiter = ' ')]
device: Vec<String>,
}

Expand Down

0 comments on commit 3c1273c

Please sign in to comment.