mirror of
https://github.com/pezkuwichain/revive-differential-tests.git
synced 2026-06-13 10:31:03 +00:00
@@ -1,6 +1,6 @@
|
||||
//! The global configuration used accross all revive differential testing crates.
|
||||
|
||||
use std::{env, path::PathBuf};
|
||||
use std::path::PathBuf;
|
||||
|
||||
use clap::Parser;
|
||||
|
||||
@@ -18,8 +18,10 @@ pub struct Arguments {
|
||||
pub corpus: Vec<PathBuf>,
|
||||
|
||||
/// A place to store temporary artifacts during test execution.
|
||||
#[arg(long = "workdir", short, default_value_t = cwd())]
|
||||
pub working_directory: String,
|
||||
///
|
||||
/// Creates a temporary dir if not specified.
|
||||
#[arg(long = "workdir", short)]
|
||||
pub working_directory: Option<PathBuf>,
|
||||
|
||||
/// The path to the `geth` executable.
|
||||
///
|
||||
@@ -40,13 +42,6 @@ pub struct Arguments {
|
||||
pub genesis_file: Option<PathBuf>,
|
||||
}
|
||||
|
||||
fn cwd() -> String {
|
||||
env::current_dir()
|
||||
.expect("should be able to access current woring directory")
|
||||
.to_string_lossy()
|
||||
.to_string()
|
||||
}
|
||||
|
||||
impl Default for Arguments {
|
||||
fn default() -> Self {
|
||||
Arguments::parse_from(["retester"])
|
||||
|
||||
Reference in New Issue
Block a user