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!
Currently, the
flashstatandflashstat-serverbinaries load configuration exclusively fromflashstat.tomland environment variables via theconfigcrate.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:
clapas a dependency to the workspace or the relevant bin crates.--config <path>to specify a custom config file path.--ws-url <url>and--http-url <url>to override RPC endpoints.configcrate 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!