diff --git a/bin/reth/src/db/mod.rs b/bin/reth/src/db/mod.rs index 4f3706ba1..43051d07b 100644 --- a/bin/reth/src/db/mod.rs +++ b/bin/reth/src/db/mod.rs @@ -72,6 +72,8 @@ pub enum Subcommands { Drop, /// Lists current and local database versions Version, + /// Returns the full database path + Path, } #[derive(Parser, Debug)] @@ -243,6 +245,9 @@ impl Command { println!("Local database is uninitialized"); } } + Subcommands::Path => { + println!("{}", db_path.display()); + } } Ok(())