Skip to content

Commit e332621

Browse files
apollo_network_benchmark: added arguemt parsing using clap
1 parent f821960 commit e332621

File tree

4 files changed

+13
-0
lines changed

4 files changed

+13
-0
lines changed

Cargo.lock

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

crates/apollo_network_benchmark/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ license-file.workspace = true
99
testing = []
1010

1111
[dependencies]
12+
clap = { workspace = true, features = ["derive"] }
1213
tokio = { workspace = true, features = ["full", "sync"] }
1314

1415

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
use clap::Parser;
2+
3+
#[derive(Parser, Debug, Clone)]
4+
#[command(version, about, long_about = None)]
5+
pub struct Args {}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
//! Runs a node that stress tests the p2p communication of the network.
22
3+
use clap::Parser;
4+
mod args;
5+
6+
use args::Args;
7+
38
#[tokio::main]
49
async fn main() -> Result<(), Box<dyn std::error::Error>> {
10+
let _args = Args::parse();
511
Ok(())
612
}

0 commit comments

Comments
 (0)