Skip to content

Commit

Permalink
preparing to use the ctrlc crate
Browse files Browse the repository at this point in the history
  • Loading branch information
nrminor committed Jan 7, 2024
1 parent 116b7ef commit 7f1fa21
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 2 deletions.
33 changes: 33 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ arrow = "46.0.0"
bio = "1.4.0"
chrono = "0.4.30"
clap = { version = "4.4.3", features = ["derive", "cargo"]}
clap-verbosity-flag = "2.1.1"
ctrlc = "3.4.2"
displaydoc = "0.2.4"
distmat = "0.3.0"
polars = {version = "0.32.1", features = ["lazy"] }
Expand Down
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ similar analyses themselves via the command line.
#[clap(name = "alpine")]
#[clap(about = INFO)]
struct Cli {
#[arg(short, long, action = clap::ArgAction::Count)]
verbose: u8,
#[command(flatten)]
verbose: clap_verbosity_flag::Verbosity,

#[arg(short, long, default_value_t = 3, required = false)]
threads: u8,
Expand Down

0 comments on commit 7f1fa21

Please sign in to comment.