Skip to content

Commit

Permalink
add version to client
Browse files Browse the repository at this point in the history
  • Loading branch information
ghubertpalo committed Oct 21, 2022
1 parent 99bae88 commit b0179ea
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

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

2 changes: 1 addition & 1 deletion mithril-aggregator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ warp = "0.3"

[dev-dependencies]
httpmock = "0.6.6"
mithril-common = { path = "../mithril-common", features = ["test_only"]}
mithril-common = { path = "../mithril-common", features = ["test_only"] }
mockall = "0.11.0"
slog-term = "2.9.0"
tempfile = "3.3.0"
Expand Down
4 changes: 2 additions & 2 deletions mithril-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description = "A Mithril Client"

[dependencies]
async-trait = "0.1.52"
clap = { version = "3.1.6", features = ["derive", "env"] }
clap = { version = "4.0", features = ["derive", "env"] }
cli-table = "0.4"
config = "0.13.1"
flate2 = "1.0.23"
Expand All @@ -27,7 +27,7 @@ tokio = { version = "1", features = ["full"] }

[dev-dependencies]
httpmock = "0.6.6"
mithril-common = { path = "../mithril-common", features = ["test_only"]}
mithril-common = { path = "../mithril-common", features = ["test_only"] }
mockall = "0.11.0"

[features]
Expand Down
5 changes: 3 additions & 2 deletions mithril-client/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ use mithril_client::commands::{DownloadCommand, ListCommand, RestoreCommand, Sho
about = "This program downloads, checks and restores certified blockchain snapshots.",
long_about = None
)]
#[command(version)]
pub struct Args {
/// Available commands
#[clap(subcommand)]
Expand All @@ -28,8 +29,8 @@ pub struct Args {
run_mode: String,

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

/// Directory where configuration file is located.
#[clap(long, default_value = "./config")]
Expand Down
2 changes: 1 addition & 1 deletion mithril-signer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ tokio = { version = "1.17.0", features = ["full"] }

[dev-dependencies]
httpmock = "0.6.6"
mithril-common = { path = "../mithril-common", features = ["test_only"]}
mithril-common = { path = "../mithril-common", features = ["test_only"] }
mockall = "0.11.0"
slog-term = "2.9.0"

Expand Down

0 comments on commit b0179ea

Please sign in to comment.