Skip to content

Commit 4c17ca6

Browse files
Update clap requirement from ~3.0.0 to ~3.1.3 (#215)
1 parent f40562a commit 4c17ca6

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ tskit-derive = {version = "0.2.0", path = "tskit-derive", optional = true}
2828
mbox = "0.6.0"
2929

3030
[dev-dependencies]
31-
clap = "~3.0.0"
31+
clap = "~3.1.3"
3232
serde = {version = "1.0.118", features = ["derive"]}
3333
serde-pickle = "1.1.0"
3434
bincode = "1.3.1"

examples/forward_simulation.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* and numbers of crossovers, etc.., from being entered
1919
* on the command line.
2020
*/
21-
use clap::{App, Arg};
21+
use clap::{Command, Arg};
2222
use rand::rngs::StdRng;
2323
use rand::Rng;
2424
use rand::SeedableRng;
@@ -65,7 +65,7 @@ impl SimParams {
6565
fn new() -> Self {
6666
let mut params = SimParams::default();
6767

68-
let matches = App::new("forward_simulation")
68+
let matches = Command::new("forward_simulation")
6969
.arg(
7070
Arg::new("popsize")
7171
.short('N')

examples/tree_traversals.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use clap::{App, Arg};
1+
use clap::{Command, Arg};
22
use tskit::prelude::*;
33

44
// "Manual" traversal from samples to root
@@ -25,7 +25,7 @@ fn preorder_traversal(tree: &tskit::Tree) {
2525
}
2626

2727
fn main() {
28-
let matches = App::new("tree_traversals")
28+
let matches = Command::new("tree_traversals")
2929
.arg(
3030
Arg::new("treefile")
3131
.short('t')

0 commit comments

Comments
 (0)