Skip to content

Commit

Permalink
[Fix] clap num argument (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
mistricky authored Dec 10, 2024
1 parent ed63970 commit 345c2ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,15 @@ struct CLI {
line_number_color: String,

/// Delete lines will be marked with a red line
#[arg(long, short, num_args=0..)]
#[arg(long, short, num_args=1..)]
delete_line: Vec<String>,

/// Delete line color
#[arg(long, default_value = "#ff6b6b30")]
delete_line_color: String,

/// New lines will be marked with a green line
#[arg(long, short, num_args=0..)]
#[arg(long, short, num_args=1..)]
add_line: Vec<String>,

/// New line color
Expand Down

0 comments on commit 345c2ed

Please sign in to comment.