Skip to content

Commit 6056fb7

Browse files
committed
add version to client
1 parent 99bae88 commit 6056fb7

File tree

6 files changed

+9
-8
lines changed

6 files changed

+9
-8
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demo/protocol-demo/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ base64 = "0.13.0"
99
clap = { version = "3.1.6", features = ["derive"] }
1010
hex = "0.4.3"
1111
log = "0.4.14"
12-
mithril-common = { path = "../../mithril-common", features = ["allow_skip_signer_certification"]}
12+
mithril-common = { path = "../../mithril-common", features = ["allow_skip_signer_certification"] }
1313
rand_chacha = "0.3.1"
1414
rand_core = "0.6.3"
1515
serde = { version = "1.0", features = ["derive"] }

mithril-aggregator/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ warp = "0.3"
3030

3131
[dev-dependencies]
3232
httpmock = "0.6.6"
33-
mithril-common = { path = "../mithril-common", features = ["test_only"]}
33+
mithril-common = { path = "../mithril-common", features = ["test_only"] }
3434
mockall = "0.11.0"
3535
slog-term = "2.9.0"
3636
tempfile = "3.3.0"

mithril-client/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ description = "A Mithril Client"
77

88
[dependencies]
99
async-trait = "0.1.52"
10-
clap = { version = "3.1.6", features = ["derive", "env"] }
10+
clap = { version = "4.0", features = ["derive", "env"] }
1111
cli-table = "0.4"
1212
config = "0.13.1"
1313
flate2 = "1.0.23"
@@ -27,7 +27,7 @@ tokio = { version = "1", features = ["full"] }
2727

2828
[dev-dependencies]
2929
httpmock = "0.6.6"
30-
mithril-common = { path = "../mithril-common", features = ["test_only"]}
30+
mithril-common = { path = "../mithril-common", features = ["test_only"] }
3131
mockall = "0.11.0"
3232

3333
[features]

mithril-client/src/main.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ use mithril_client::commands::{DownloadCommand, ListCommand, RestoreCommand, Sho
1818
about = "This program downloads, checks and restores certified blockchain snapshots.",
1919
long_about = None
2020
)]
21+
#[command(version)]
2122
pub struct Args {
2223
/// Available commands
2324
#[clap(subcommand)]
@@ -28,8 +29,8 @@ pub struct Args {
2829
run_mode: String,
2930

3031
/// Verbosity level (-v=warning, -vv=info, -vvv=debug).
31-
#[clap(short, long, parse(from_occurrences))]
32-
verbose: usize,
32+
#[clap(short, long, action = clap::ArgAction::Count)]
33+
verbose: u8,
3334

3435
/// Directory where configuration file is located.
3536
#[clap(long, default_value = "./config")]

mithril-signer/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ tokio = { version = "1.17.0", features = ["full"] }
2525

2626
[dev-dependencies]
2727
httpmock = "0.6.6"
28-
mithril-common = { path = "../mithril-common", features = ["test_only"]}
28+
mithril-common = { path = "../mithril-common", features = ["test_only"] }
2929
mockall = "0.11.0"
3030
slog-term = "2.9.0"
3131

0 commit comments

Comments
 (0)