Skip to content

feat(cli): Add clap support for CLI configuration overrides #13

Description

@intelliDean

Currently, the flashstat and flashstat-server binaries load configuration exclusively from flashstat.toml and environment variables via the config crate.

It would be a great quality-of-life improvement to allow users to override these settings directly via command-line arguments using clap.

Acceptance Criteria:

  • Add clap as a dependency to the workspace or the relevant bin crates.
  • Support at least --config <path> to specify a custom config file path.
  • Support --ws-url <url> and --http-url <url> to override RPC endpoints.
  • Merge the CLI arguments with the existing config crate setup (CLI should have highest precedence).

Good First Issue: This is a well-contained Rust task perfect for someone looking to make their first contribution to the project!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions