Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
184 changes: 81 additions & 103 deletions 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 bins/revme/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ alloy-rlp = { version = "0.3", default-features = false, features = [
] }
serde = { version = "1.0", features = ["derive", "rc"] }
serde_json = { version = "1.0", features = ["preserve_order"] }
structopt = "0.3"
clap = { version = "4", features = ["derive"] }
thiserror = "1.0"
triehash = "0.8"
walkdir = "2.5"
Expand Down
16 changes: 7 additions & 9 deletions bins/revme/src/cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,19 @@ pub mod eofvalidation;
pub mod evmrunner;
pub mod statetest;

use structopt::{clap::AppSettings, StructOpt};
use clap::Parser;

#[derive(StructOpt, Debug)]
#[structopt(setting = AppSettings::InferSubcommands)]
#[derive(Parser, Debug)]
#[command(infer_subcommands = true)]
#[allow(clippy::large_enum_variant)]
pub enum MainCmd {
#[structopt(about = "Execute Ethereum state tests")]
/// Execute Ethereum state tests.
Statetest(statetest::Cmd),
#[structopt(about = "Execute eof validation tests")]
/// Execute eof validation tests.
EofValidation(eofvalidation::Cmd),
#[structopt(
about = "Evm runner command allows running arbitrary evm bytecode.\nBytecode can be provided from cli or from file with --path option."
)]
/// Run arbitrary EVM bytecode.
Evm(evmrunner::Cmd),
#[structopt(alias = "bc", about = "Prints the opcodes of an hex Bytecodes.")]
/// Print the structure of an EVM bytecode.
Bytecode(bytecode::Cmd),
}

Expand Down
Loading