Skip to content

Commit 99bae88

Browse files
committed
add version flag to signer
1 parent aea01c9 commit 99bae88

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
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.

mithril-signer/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ description = "A Mithril Signer"
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
config = "0.13.1"
1212
hex = "0.4.3"
1313
mithril-common = { path = "../mithril-common" }

mithril-signer/src/main.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ use mithril_signer::{
1313
#[derive(Parser)]
1414
#[clap(name = "mithril-signer")]
1515
#[clap(about = "An implementation of a Mithril Signer", long_about = None)]
16+
#[command(version)]
1617
pub struct Args {
1718
/// Run Mode
1819
#[clap(short, long, env("RUN_MODE"), default_value = "dev")]
@@ -22,17 +23,17 @@ pub struct Args {
2223
#[clap(
2324
short,
2425
long,
25-
parse(from_occurrences),
26-
help = "verbosity level, add more v to increase"
26+
action = clap::ArgAction::Count,
27+
help = "Verbosity level, add more v to increase"
2728
)]
28-
verbose: usize,
29+
verbose: u8,
2930

3031
/// Configuration file location
3132
#[clap(
3233
short,
3334
long,
3435
default_value = "./config",
35-
help = "directory where the configuration file is located"
36+
help = "Directory where the configuration file is located"
3637
)]
3738
configuration_dir: PathBuf,
3839
}

0 commit comments

Comments
 (0)