Skip to content

Commit d774d91

Browse files
authored
feat: allow --db before or after subcommand (#1827)
1 parent 7ac06cd commit d774d91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/reth/src/db/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ pub struct Command {
2929
/// - Linux: `$XDG_DATA_HOME/reth/db` or `$HOME/.local/share/reth/db`
3030
/// - Windows: `{FOLDERID_RoamingAppData}/reth/db`
3131
/// - macOS: `$HOME/Library/Application Support/reth/db`
32-
#[arg(long, value_name = "PATH", verbatim_doc_comment, default_value_t)]
32+
#[arg(global = true, long, value_name = "PATH", verbatim_doc_comment, default_value_t)]
3333
db: PlatformPath<DbPath>,
3434

3535
#[clap(subcommand)]

0 commit comments

Comments
 (0)