feat(cli): add version cli flag (#216)

This commit is contained in:
Noah Citron 2023-03-15 16:04:09 -04:00 committed by GitHub
parent f5760f7a8a
commit 2e6b948c8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 7 deletions

14
Cargo.lock generated
View File

@ -524,7 +524,7 @@ dependencies = [
[[package]] [[package]]
name = "cli" name = "cli"
version = "0.2.0" version = "0.3.0"
dependencies = [ dependencies = [
"clap", "clap",
"client", "client",
@ -541,7 +541,7 @@ dependencies = [
[[package]] [[package]]
name = "client" name = "client"
version = "0.2.0" version = "0.3.0"
dependencies = [ dependencies = [
"common", "common",
"config", "config",
@ -645,7 +645,7 @@ checksum = "3d7b894f5411737b7867f4827955924d7c254fc9f4d91a6aad6b097804b1018b"
[[package]] [[package]]
name = "common" name = "common"
version = "0.2.0" version = "0.3.0"
dependencies = [ dependencies = [
"ethers", "ethers",
"eyre", "eyre",
@ -657,7 +657,7 @@ dependencies = [
[[package]] [[package]]
name = "config" name = "config"
version = "0.2.0" version = "0.3.0"
dependencies = [ dependencies = [
"common", "common",
"ethers", "ethers",
@ -677,7 +677,7 @@ dependencies = [
[[package]] [[package]]
name = "consensus" name = "consensus"
version = "0.2.0" version = "0.3.0"
dependencies = [ dependencies = [
"async-trait", "async-trait",
"bytes", "bytes",
@ -1528,7 +1528,7 @@ checksum = "0206175f82b8d6bf6652ff7d71a1e27fd2e4efde587fd368662814d6ec1d9ce0"
[[package]] [[package]]
name = "execution" name = "execution"
version = "0.2.0" version = "0.3.0"
dependencies = [ dependencies = [
"async-trait", "async-trait",
"bytes", "bytes",
@ -2026,7 +2026,7 @@ checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8"
[[package]] [[package]]
name = "helios" name = "helios"
version = "0.2.0" version = "0.3.0"
dependencies = [ dependencies = [
"client", "client",
"common", "common",

View File

@ -17,6 +17,7 @@ members = [
"execution", "execution",
"helios-ts", "helios-ts",
] ]
default-members = ["cli"]
[profile.bench] [profile.bench]
debug = true debug = true

View File

@ -80,6 +80,8 @@ fn get_config() -> Config {
} }
#[derive(Parser)] #[derive(Parser)]
#[clap(version, about)]
/// Helios is a fast, secure, and portable light client for Ethereum
struct Cli { struct Cli {
#[clap(short, long, default_value = "mainnet")] #[clap(short, long, default_value = "mainnet")]
network: String, network: String,