Skip to content

Commit aea01c9

Browse files
committed
add version flag for aggregator
1 parent f8ff952 commit aea01c9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

mithril-aggregator/src/command_args.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ async fn do_first_launch_initialization_if_needed(
137137

138138
/// Mithril Aggregator Node
139139
#[derive(Parser, Debug, Clone)]
140+
#[command(version)]
140141
pub struct MainOpts {
141142
/// application main command
142143
#[clap(subcommand)]
@@ -147,8 +148,8 @@ pub struct MainOpts {
147148
pub run_mode: String,
148149

149150
/// Verbosity level
150-
#[clap(short, long, parse(from_occurrences))]
151-
pub verbose: usize,
151+
#[clap(short, long, action = clap::ArgAction::Count)]
152+
pub verbose: u8,
152153

153154
/// Directory of the Cardano node files
154155
#[clap(long)]

0 commit comments

Comments
 (0)