Skip to content

parameter sequence for db upgrade could be improved #24394

@mrabino1

Description

@mrabino1

Describe the bug

./reth db --datadir /xxxxx/yyyyy/reth_storage migrate-v2 (works)

but

./reth db migrate-v2 --datadir /xxxxx/yyyyy/reth_storage (broken)
error: unexpected argument '--datadir' found

Usage: reth db migrate-v2 [OPTIONS]

For more information, try '--help'.

Steps to reproduce

see above

Node logs

latest on ubuntu

Platform(s)

Linux (x86)

Container Type

Not running in a container

What version/commit are you on?

latest

What database version are you on?

v1 going to v2

Which chain / network are you on?

mainnet

What type of node are you running?

Full via --full flag

What prune config do you use, if any?

No response

If you've built Reth from source, provide the full command you used

No response

Code of Conduct

  • I agree to follow the Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugAn unexpected or incorrect behaviorS-needs-triageThis issue needs to be labelled

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions